Hi
I am musing over a strange behavior of the categories. I have only one category group. It contains only first and 2nd level categories.
<h3>Category</h3>
<p> <ul><br />
<br />
<?<br />
// this is a work around due to EE unexpected behavior of the path function<br />
$mypath="{path='storefront/find'}";<br />
?><br />
{exp:channel:categories style="linear" category_group="1"}<br />
{if "{shop_by}" != "no"}<br />
<li><a href="http://<?=$mypath?>/{category_url_title}/{category_id}/sb">{category_name}</a></li><br />
{/if}<br />
{/exp:channel:categories}<br />
<br />
</ul>Now I would expect every category to show up once - but the list get contains each child category twice which looks in my case like this:
Category
Rings
Watches
Knives
Spiritual
Clocks
Apparel
Plates
Outdoor
Gift Items
Sculpture
Spiritual
Clocks
Apparel
Plates
Outdoor
Gift Items
Sculpture
(I marked the doubles blue)
Has anyone an idea whats causing this?
Thanks