Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-10-09 11:41:10
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
if_author?
Is there anyway to display custom content depending on the author of the article?
We all want our own affiliate links on our own articles.
Offline
#2 2006-10-09 13:03:11
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: if_author?
txp:if_article_author, but I think it won’t be there until 4.0.4.
Offline
#3 2006-10-10 04:38:57
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: if_author?
…but I think it won’t be there until 4.0.4.
That’s correct, but we’re hoping that 4.0.4 is imminent. :) Rob does have a plugin for 4.0.3, though.
Last edited by Mary (2006-10-10 04:39:50)
Offline
Re: if_author?
Els wrote:
txp:if_article_author, but I think it won’t be there until 4.0.4.
It’s a useful tool on some cases, but not most. One have to list by hand the authors on his website, edit a page/form each time a new author is added, etc.
Offline
Re: if_author?
Yeah, it would be neat to have a profile field for each site author, as a plugin or something. Then something like <txp:author link="y" profile="y" />
. For now, I’m content with the following in my <samp>author</samp> form (output in the article form):
<code>
<h3>About the author</h3>
<txp:if_article_author name=“superman”>
<p>Fan of blue spandex and hair gel</p>
</txp:if_article_author>
<txp:if_author name=“anotherlogin”>
…
</txp:if_author>
</code>
Offline
#6 2006-10-10 07:13:43
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
Re: if_author?
Thanks everyone. That helps a lot.
Offline
Pages: 1