<txp:if_article_image /> container tag, 0 attributes

if_article_image

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

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

The tag will execute the contained statements if an image is associated (through the article image field) with the article being displayed.

genealogy

Version 4.2.0

  • Added as a new tag
<txp:if_article_image /> 1 examples

Display default image if no article image exists

<txp:if_article_image>
	<txp:article_image />
<txp:else />
	<txp:image id="5" />
</txp:if_article_image>

Other tags used: article_image, else, image