Low Reorder and nested Switchee Issue
Hello Low
I am using switchee and lowreorder...trying to create a sidebar navigation based on entries from 3 channels. When I test this code, the first entries tag pair works just fine (when there is not a value for segment_2), but the second entries tag pair just spits out the same entry name as is display in segment_2 of the URL...it duplicates the current entry for the same amount of entries as are available, but they are all named based on the current entry ...eg... Our Mission (this repeats six times as there are 6 entries total in these 3 channels). Help?! Thank you!
in this section
{switchee variable="{segment_1}/{segment_2}" parse="inward"}
{case value="about/"}
{exp:low_reorder:entries set="about"
channel="about|staff_executives|board_of_directors"
disable="categories|category_fields|member_data|pagination"
sort="asc"
status="Open"
}
{/exp:low_reorder:entries}
{/case}
{case value="about/{segment_2}"}
{exp:low_reorder:entries set="about"
channel="about|staff_executives|board_of_directors"
disable="categories|category_fields|member_data|pagination"
dynamic="no"
sort="asc"
status="Open"
}
{title}
{/exp:low_reorder:entries}
{/case}
{/switchee}
Replies
soire 30 Sep 2014 18:37
oops...here is a link to the full code on Pasitie
http://pastie.org/9608058
Low 30 Sep 2014 19:09
Is that the full template code? Or do you have the Switchee tag nested in something else, too?
soire 30 Sep 2014 20:01
this is in a snippet called sn_block_section_nav
here is the template that calls for the above snippet, once, in the sidebar
http://pastie.org/9608237
Low 30 Sep 2014 20:08
OK, you're nesting Switchee tags, which might be problematic. Check with Mark Croxton to see if that is possible at all.
You can also try and use the prefix param: http://gotolow.com/addons/low-reorder... like prefix="lr_" so the tags become this: {lr_title} instread of {title}.
soire 30 Sep 2014 20:14
Thanks for your reply. Nesting switchee tags is supported, hence the different syntax for the nested pair.
I tried the prefix parameter, but it yields the same result. Is there are private email address I could email you at so that you could see the site in action? I can't share it publicly at the moment.
Low 30 Sep 2014 20:16
Sure: http://gotolow.com/contact
Low 30 Sep 2014 20:56
For visibility: using the prefix="" param and using that prefix in the variables solved the issue.