Forum
Displaying a blog post's category in list view
Hello,
I've had a look at the documentation and I haven't been able to find a solution that has worked. I'm trying to outpput the category of the post in list view and i've tried,
<perch:category id="category" set="blog" />
<perch:category id="catTitle" />
</perch:category>
and
<perch:categories id="category" set="blog" />
<perch:category id="catTitle" />
</perch:categories>
I've freshly installed perch and the blog app so everything is up to date! Any ideas would be great, thank you
That second instance should be fine - is that how it appears in your
post.html
template?I notice that, out of the box, the
post.html
template uses the id 'categories', so if you've not changed it, I think you would use:thank you for the replies. turns out it wasn't the same way it was inside post.html. The below worked eventually: