Synopsis

This tag may be used to determine whether some contained Txp tags output any data, allowing the conditional output of accompanying static markup, like a header or a “no articles found” message.

<txp:chh_if_data>
    <h3>Here's an article list</h3>
    <txp:article_custom category="Nogo" />
<txp:else />
    <p>article_custom had nothing to say.</p>
</txp:chh_if_data>
 
<txp:chh_if_data>
    Static text will NEVER be shown.
    Drop a Txp tag in here!
</txp:chh_if_data>

Download

Discussion / Bug Reports

Please post all comments, suggestions, and bug reports to the chh_if_data Txp Support Forum thread.