Compatibility Problems with switchee? (low_title)
If I use low_title:category with a template with multiple exp:switchee-Tags, the output uf exp:low_title:category is kind of strange, as it outputs the content of another switchee-tag or the full html-content of an exp:channel:entry-tag further down the page...
{exp:switchee variable='{segment_2}' parse='inward'}
{case value="#^P#|''"}{embed='_global/.breadcrumb'...}{/case}
{case value='biete'}
{switchee variable='{segment_3}' parse='inward'}
{case value="#^P#|''"}{embed='_global/.breadcrumb'...}{/case}
{case value='cat'}{embed='_global/.breadcrumb' ... last='{exp:low_title:category url_title="{segment_4}"}'}{/case}
{/switchee}
{/case}
{case value='suche'}...{/case}
{case value='cat'}{embed='_global/.breadcrumb' ... last='{exp:low_title:category url_title="{segment_3}"}'}{/case}
{/exp:switchee}
as you can see, I'm using switchee to embed different versions of a breadcrumb-template. In the case «segment_2 == 'biete' AND segment_3 == 'cat'» low_title:category WORKS perfectly ... but in the 'simpler' case «segment_2 == 'cat'» low_title:category shows strange html-content from further down the page instead of name the category, url-titled in segment_3 ... actually it's not 'strange html-content', but it's the content of the next upcoming switchee-tag further down the page
Is there a known bug? Or do I make an error in my code? Or is it a compatibility-problem?
Additional Info: Before I used switchee for this conditionals, I used the ee-native if/else-conditionals — there everything worked fine with low_title. I had to switch to «switchee» because with native ee-conditionals I could not work around the Pagination-Cases (#^P#-Regex in switchee).
Replies
Low 3 Dec 2012 10:00
There is no reason why Low Title shouldn't be compatible with Switchee -- It's just another plugin like any other.
I suggest you take a closer look at your Switchee code, perhaps simplifying it a bit.
Low 3 Dec 2012 10:14
Enable the template debugger and look up what tags are actually being processed. What does that tell you?
Mark Croxton 3 Dec 2012 11:54
If you add debug="yes" to Switchee you will be able to see some more info in the debugger output about what is being matched.
Low 3 Dec 2012 12:28
Thanks for chiming in, Mark. :)