<txp:if_article_author /> container tag, 1 attributes

if_article_author

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

<txp:if_article_author>
...conditional statement...
</txp:if_article_author>

The tag will execute the contained statement if the author name associated with a particular article matches the value of the name attribute. Should be used in an article form.

The name attribute requires an author’s login name not their Real Name

attributes

name="unset" 
  • Comma-separated list of author (login) names.
<txp:if_article_author /> 1 examples

Display some text dependent on an article’s author

<txp:if_article_author name="admin">
	<p>Publisher</p>
</txp:if_article_author>

What this does…
Displays the text “Publisher” if the article was written (posted) by the author “admin”.