Forum
Category not showing in blog post_in_list template
I have updated to the most recent version of Perch and Perch_blog.
I have updated my templates as specified in the documentation.
The index page of my blog uses the 'post_in_list.html' template shown below:
<article class="short clearfix">
<time><perch:blog id="postDateTime" format="%d %b %Y" /></time>
<h1><a href="<perch:blog id="postURL" />"><perch:blog id="postMainTitle" type="text" required="true" size="xl" /><span> <perch:blog id="postSubTitle" label="Post Sub Title" type="text" size="xl" /> </span></a></h1>
<aside>
<p>Published in:</p>
<a href="archive.php?cat=<perch:category id="catSlug" />"><perch:category id="catTitle" /></a>
</aside>
<div class="excerpt">
<perch:blog id="excerpt" type="textarea" textile="true" />
</div>
<a class="read-more" href="<perch:blog id="postURL" />" rel="bookmark">Read More</a>
</article>
But the category link and title are not being output. The post in the blog app has the category checked, the category looks to be set up properly in the backend but it just won't show.
The individual post page IS showing the category though.
I can't see what I'm doing wrong. Any ideas??
Diagnostics report here as well.
SUMMARY INFORMATION
Perch: 2.8.6, PHP: 5.5.20, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: bf9ad53b11c9a57efdb1057292d73b928b8c5c77 $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (2.8.6), assets (2.8.6), categories (2.8.6), perch_blog (4.6), perch_newsfeed (1), perch_comments (1.1), perch_backup (1.2), perch_twitter (3.5.1)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_twitter', 'perch_comments', 'perch_blog', ); ?>
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/diginut/Sites/ifnotwhynot/perch
PERCH_CORE: /Users/diginut/Sites/ifnotwhynot/perch/core
PERCH_RESFILEPATH: /Users/diginut/Sites/ifnotwhynot/perch/resources
Image manipulation: GD
PHP limits: Max upload 2M, Max POST 8M, Memory: 128M, Total max file upload: 2M
Resource folder writeable: Yes
HTTP_HOST: ifnotwhynot.dev
DOCUMENT_ROOT: /Users/diginut/Sites/ifnotwhynot
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Thanks,
Alex
They need to appear in a
<perch:categories></perch:categories>
tag pair, so they can repeat. Just like in yourpost.html
template.