Forum
Blog Template Tags post section postSection?
Does perch happen to expose the section of a blog post the way it does postTitle, postTags, category_names, etc?
if not, is there a way I can make this happen? Thanks again Nick
Does perch happen to expose the section of a blog post the way it does postTitle, postTags, category_names, etc?
if not, is there a way I can make this happen? Thanks again Nick
Yes, it should do. What do you see if you add
<perch:showall />
to your template?I get a big table.
there is postTags listed. And sectionID [integer].
there is no string of section and interestingly I see no categories array.
sectionID
should give you enough to look up the section.I gave up on using sections for the moment to pursue just using categories and tags. However I'm running into troubles again.
I've been digging around the Swift project blog files. Those files are calling on blog content using IDs such as categorySlug, categoryTitle, sectionSlug, sectionTitle... None of these seem to be manually entered into the post.html template.
I'm just trying to get a list of posts filtered by section, category, or tag. Seemingly similar to the Swift project. However the "native" section list and category checkboxes seem to only affect the organization of the blog admin area.
I could manually enter similar fields into my post.html, but it is frustratingly redundant to add the same information multiple times.
The example blog pages included with the download list by section, category and tag.