soo_image user guide Page 14 of 16

Conditional tags

Standard conditional tag behavior, compatible with else. Can be used anywhere, but require image context or else they will always evaluate to false.

soo_if_txp_image

<txp:soo_if_txp_image>...<txp:else />...</txp:soo_if_txp_image>

Attributes

soo_if_txp_image does not accept any attributes; it simply checks whether or not the image is stored in the Txp image table (as opposed to an article image declared by URL).

soo_if_image_* (-author, -category, -thumbnail)

<txp:soo_if_image_author>...<txp:else />...</txp:soo_if_image_author>
<txp:soo_if_image_category>...<txp:else />...</txp:soo_if_image_category>
<txp:soo_if_image_thumbnail>...<txp:else />...</txp:soo_if_image_thumbnail>

Attributes

soo_if_image_thumbnail does not accept any attributes; it simply checks whether or not the image has a thumbnail.

soo_if_image_author and soo_if_image_category each accept the following attribute: