Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
Current version:
0.1
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

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
if
list – is the same as if_article_list
single – is the same as if_single_article

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

Article Request Count:
Initially released:
2005-01-17
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:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

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.

Browse

Categories


Articles

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