Forum
perch:if & categories
Wondering if there is a way to use Perch for some logic with categories.
<perch:categories id="categories" set="blog" />
// If there are multiple categories & this is not the first
extra notation <perch:category id="catTitle" />
// else
<perch:category id="catTitle" />
</perch:categories>
You can test for perch_item_first
Cool. Alright correct me if I'm wrong here... I'm looking to output something like:
CatTitle1 - CatTitle2
I have this code:
Which is outputting:
- CatTitle1 CatTitle2
Does this seem backwards from the logic?
Should be: