Forum
dumb question re categories
Using latest Perch V2. Client has a number of items that they wish to assign to categories. Fine I can get them to assign an item to a category with the following in my item template
<perch:categories id="trainers" label="select trainer" set="trainers" required="true" display-as="checkboxes" />
How do I show the category in the html output?
How do I order items by category if I have several items from different categories displayed on output page?
I am sure this is simple but I cant find what I need in docs.
Many thanks
I think you want this: https://docs.grabaperch.com/templates/categories/
Thanks Drew, I saw that. Maybe I am missing the blindingly obvious...
...But how do I actually show a category name on the output
so I have a set called 'trainers', within which there are categories eg reebok, nike, newbalance
so I might have a category reebok trainers
I want html output to show
reebok trainers
groovy shoes one
groovy shoes two etc
Hi Charlie,
from the page Drew linked to, you need:
Thanks Duncan
I have two sets, colours and trainers
colour categories red, green, white etc
trainers categories reebok, nike, newbalance etc
I maybe am not being clear. I don't want a list of the categories themselves, I want to be able to show a list of items that are under a category, so eg all the 'red' items or all the 'reebok' items
In that case, you're probably after these docs:
https://docs.grabaperch.com/perch/categories/filtering/
Duncan
Thank you very much, why couldn't I find those docs doh!