x
 
Create New Page

Revision: Conditional Based On Category

Revision from: 11:18, 6 Jun 2007

On a multi-entry page inside the exp:weblog:entries tag, if you want to show information conditionally based on category, you’ll need to use PHP:

{exp:weblog:entries weblog="yourweblog"}


{categories}


{if category_id
== "54") conditional content here {/if}

{
/categories}

{
/exp:weblog:entries}

Category:Entries Category:Templates Category:Categories