lb:if_category

only shows content if a category is requested by URL

Checks if the user requested a category. If not, Loudblog doesn’t show the content between the opening and closing tag.

Simple usage

<lb:if_category>
Some content goes here
</lb:if_category>

Attributes

category

If you don’t assign a category-attribute, Loudblog will show the content if ANY category is requested by URL. Otherwise it will check if the URL-category matches the assigned category-attribute.

Example:
<lb:if_category category="hiphop">
<h2>You’re at the Hip-Hop Channel, word!</h2>
</lb:if_category>

Say category="false" to show the content only if there is no current category set (e.g. on the home page of your website or on a posting without a category defined)