Content last modified Tuesday 24 August 2021
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:
09 Apr 2005

You know you want to visit the Archives.
Published with Textpattern