Hello I was wondering if {switch} can be used with
{exp:weblog:categories weblog="{my_weblog}" style="linear"}
<a href="http://{path={my_template_group}/index}">{category_name}</a>
{/exp:weblog:categories}I’ve been trying but all I get is an empty “div” like below when the page is rendered.
<div class=””>Category name</div>I did something like this with {switch} but I’m not even sure it will work.
{exp:weblog:categories weblog="{my_weblog}" style="linear"}
<div class="{switch optionone|optiontwo|optionthree}">
<a href="http://{path={my_template_group}/index}">{category_name}</a></div>
{/exp:weblog:categories}Basically I was trying to give each category a different color using the switch. Any suggestions or feedback on what I could be missing would be greatly appreciated.