Currently I'm using a bunch of if statements to check what the value is in $subCat.category_name then adding a class based on what it is:
But I'm guessing there should be a more direct to make $subCat.category_name one of the classes of the <a> tags.
Code:
<xen:if is="{$subCat.category_name} == 'Review'">
<li><a href="{xen:link 'articles', $subCat}" class="ribbon categoryReview">{$subCat.category_name}</a></li>
<xen:elseif is="{$subCat.category_name} == 'Release'" />
<li><a href="{xen:link 'articles', $subCat}" class="ribbon categoryRelease">{$subCat.category_name}</a></li>
.
.
.
<xen:else />
<li><a href="{xen:link 'articles', $subCat}" class="ribbon">{$subCat.category_name}</a></li>
But I'm guessing there should be a more direct to make $subCat.category_name one of the classes of the <a> tags.
Last edited: