Content last modified Monday 6 March 2017
hop to #bottom
Current version:
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!


tcm_if provides tags to replace the <txp:if_individual_article> and <txp:if_article_list> tags, for those having problems with those built-in conditionals.

A simple “if” that uses the URL variables instead of TXP’s globals to decide whether the page is an article list or a single article. Thus it’s less sensitive to various bugs, etc. I created this plugin because the txp tags weren’t working for this installation of TXP

Option Values
list – is the same as if_article_list
single – is the same as if_single_article

<txp:tcm_if if="list">   =   <txp:if_article_list>
<txp:tcm_if if="single">   =   <txp:if_individual_article>

Article Request Count:
Initially released:
Posted here:
08 Apr 2005
Article modified:
10 Oct 2005

You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:

Commenting is closed for this article.

Commented (1)

since the author’s link seems to be down, i recompiled a copy i had of tcm_if, posted here

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.




There are also tag clouds, 'cause those are fun.
Published with Textpattern