Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-09-14 00:16:55

vagari
Plugin Author
Registered: 2004-08-25
Posts: 19

If_Author seems to be malfunctioning on my site

I just upgraded to 4.2.0 on one of my sites and decided to do some “spring cleaning.” There are multiple authors and I thought it’d be nice to display other articles by the same author in the footer of an individual article. So I’ve set up an article_custom tag and since I can’t insert a variable I decided to save some time by doing multiple if statements. Only the if author statement doesn’t seem to do anything. It works if I remove the if_author tag and simply spit out the articles for one author.

For example…

<txp:if_author name="andy">
<txp:article_custom form="short" author="andy" limit="5" />
</txp:if_author>

I’ve also tried to use multiple authors possible names like, name="andy,Andy" to no avail. Has anyone had success with this tag? Perhaps I messed something up in my upgrade? I also did some basic tests where I disabled all plugins, etc. Any insights would be greatly appreciated. Thanks!

Offline

#2 2009-09-14 00:38:24

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: If_Author seems to be malfunctioning on my site

Instead of
<txp:if_author name="andy">
you’d need
<txp:if_article_author name="andy">
inside the article tag or your form.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2009-09-14 00:53:46

vagari
Plugin Author
Registered: 2004-08-25
Posts: 19

Re: If_Author seems to be malfunctioning on my site

Thanks Uli. I read “Should be used in an article form” on the wiki and since this is on the full page and not in a form I thought it was wrong. But on rereading the if_author page I see that it doesn’t do what I was trying to do anyway. Thanks again, I should have had some coffee before tackling this. =)

Offline

Board footer

Powered by FluxBB