Forum
Displaying Category Description in Content Template
Hi
I'm currently working on some vacancy pages and am using perch:categories
to select which department the vacancy is for.
On an aside column I'm wanting to add a little bit of info about the department using the category description, but nothing is being outputted.
Here's my code:
<perch:categories id="catDept" set="department">
<h2><perch:category id="catTitle" /></h2>
<p><perch:category id="catDesc" /></p>
</perch:categories>
...the category title is being displayed perfectly, but I can't get the description to display.
Any pointers would be much appreciated.
Glen
Don't forget the
type
attribute on your tag.Hi Drew
I've now got the following but the category description still isn't displaying, the category title is:
What does
<perch:showall />
show you?Is
catDesc
a field you've added to your category template?Go watch the tutorial videos.