I’m having a problem with a simple class=”{switch='even|odd'}”
I have some categories I need to display alternatively with different backgrounds, here is my code:
{exp:channel:categories channel="legal_services" style="linear"}
{exp:channel:entries channel="sections" category="{category_id}"}
<div class="{switch='even|odd'}">
<h4>{category_name}</h4>
<p> {section_intro}<br />
<a href="http://{path=what/section_legal}">More ></a><br />
<div class="img-wrapper"><br />
{section_images}<br />
{section_img_small}<br />
{/section_images}<br />
</div><br />
</div><br />
{/exp:channel:entries}<br />
{/exp:channel:categories}and here is the page:
http://www.efc.ie/test/what/legal
I have only 3 entries at the moment, for testing.
The page should be rendered like this:
http://zinc.ie/collins/what-legal.html
So the boxes have two different backgrounds respectively.
What am I doing wrong?