<txp:if_article_id /> container tag, 1 attributes


The if_article_id tag is a conditional tag and always used as an opening and closing pair, like this…

...conditional statement...

The tag will execute the contained statement if the article id associated with a particular article matches the id attribute. Should be used in an article form/container. The id attribute must be used in an article list context (when producing a page that displays more than one article) or the tag will do nothing.


id="current article's ID" (integer)
  • Comma delimited integer article ID list.


  • As of September 2009 (version 4.2.0), there is a motion to simplify the semantics of this tag in the case of undefined id attribute.


Version 4.0.7

  • Defaults to the current article’s ID.
<txp:if_article_id /> 1 examples

Display info if the article id matches

<txp:if_article_id id="33">
	<p><txp:title /></p>

What this does…
Displays the article title if the id of the current article is 33.

Other tags used: title