Forum

Thread tagged as: Question, Problem

Region Category Not Showing

Hi,

Just setting up a region template, so that the user can select which categories the item falls into, so that they will be displayed as text on the output page.

I am using this in my template file;

<perch:categories id="region" set="Regions" label="Region" required="true">
    <perch:category id="catRegion" for="region" />
</perch:categories>

This successfully creates a box on the template page, which allows me to select categories from the set Region (which works fine!).

The problem is, that none of the selected categories show up in the actual HTML (I've used inspect element, they aren't hidden, they aren't there at all).

All I can thing of, is that I haven't set up the <perch:category id="catRegion" for="region" /> block correctly.

Any thoughts?

Matthew Lymer

Matthew Lymer 1 points

  • 6 years ago

No worries - solved it.

I hadn't made sure to pair the category ID to that found in the category template (defaulted as catTitle).

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, great!