Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-24 04:23:54

davidsess
Member
From: New York, NY
Registered: 2008-01-02
Posts: 20
Website

Articles with multiple authors

I’m trying to add multiple author names to a single article for shared-byline situations. There appears to be no plugins for this, but one response suggested using a custom field. What would be the easiest way to do that, without screwing up the articles that will only have one author?


http://www.patrolmag.com

Offline

#2 2008-01-24 04:38:59

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Articles with multiple authors

Use if_custom_field. Create a custom field (admin>prefs>advanced) called secondary_author. In your article form (eg. default):

<txp:if_custom_field name="secondary_author">
    <txp:custom_field name="secondary_author" /> //prints second author
</txp:if_custom_field>

Offline

#3 2008-01-24 04:51:58

davidsess
Member
From: New York, NY
Registered: 2008-01-02
Posts: 20
Website

Re: Articles with multiple authors

Works perfectly. Thanks a ton.


http://www.patrolmag.com

Offline

Board footer

Powered by FluxBB