Hi, having a bit of trouble figuring this one out, any tips appreciated…
I have my category list hidden by jQuery, and only visible on “article” pages and category listings. Articles are working fine, by using conditionals to load a different script based on embed:blogcats content, like so:
{if '{embed:blogcats}' == 'catsclosed'}
...path to script to hide category sidebar
{if:else}
...path to script to show category sidebar
{/if}But I need to add a way to detect if the user is viewing a category listing page, and also show the categories list open on there. Something like this:
{if '{embed:blogcats}' == 'catsclosed'}
...path to script to hide category sidebar
{if:elseif '{segment_2}' == 'category'}
...path to script to show category sidebar
{if:else}
...path to script to show category sidebar
{/if}I’ve been trying all sorts of ways to do it but I can’t seem to get the right combination.
Thanks!
Cormac
Edit: Oh right, script source links are [removed]. Updated.