Hey Mark,
Thanks for the quick reply. First, I tried adding {cat:cat_category} however, it still displays {cat_category}. Second, I turned on debugging and I see the following:
(0.264182 / 25.76MB) Stash: SET entry_categories_158 to value cat_category|=|<a href="http://mjc.dev:8888/blog/category/news">News</a> (0.359411 / 27.48MB) Stash: RETRIEVED entry_categories_158 with value cat_category|=|<a href="http://mjc.dev:8888/blog/category/news">News</a>
Also, I am now seeing a bunch of php errors:
A PHP Error was encountered
Severity: Notice
Message: Undefined property: EE_Template::$layout_conditionals
Filename: libraries/Template.php
Line Number: 3375
A PHP Error was encountered
Severity: Warning
Message: array_merge() [function.array-merge]: Argument #4 is not an array
Filename: libraries/Template.php
Line Number: 3375
A PHP Error was encountered
Severity: Warning
Message: array_merge() [function.array-merge]: Argument #1 is not an array
Filename: libraries/Functions.php
Line Number: 2373
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /Users/dtriant/Sites/_clients/jahariscenter/content/_byzantia537/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 446
I noticed someone else was getting these errors as well, but it seemed like it was related to the IF:ELSE plugin. I don’t use if:else, but use Switchee. Could this be causing an issue?
I have a main template for the blog to differentiate between listing and single-entry in which I have Switchee, then I have a snippet to set_list for either the listing (sn_set_blog_list) or the entry (sn_set_blog_entry) and then display the appropriate partial. The set_list code above is called as a snippet (sn_set_categories) in both of those setters, which is why I am using {switchee} and not {exp:switchee} in the above code. The following is my main template code (with some code removed for brevity sake).
{exp:switchee variable="{segment_2}" parse="inward"}
{!-- ============================================ LISTINGS ================================================== --} {case value="''|category"} {stash:embed:layouts:index} {exp:stash:set_value name="content" value="{exp:stash:embed:partials:listing}"} {sn_set_blog_list} {/case} {!-- ============================================ SINGLE ENTRY ================================================== --} {case default="yes"} {stash:embed:layouts:single-entry} {exp:stash:set_value name="content" value="{exp:stash:embed:partials:article}"} {sn_set_blog_entry} {/case}
{/exp:switchee}
|