[Solved] Hierarchy with no item in Products Module
Posted: Thu Oct 17, 2013 2:53 pm
Hir1 --- > Hir11---> 0 item
How to show Breadcrumb in summary template of Products module, if hierarchy is empty (no product associated with Hir11). When I click on Hir11, this variable is empty ($items).
I can get the Breadcrumb by $entry->breadcrumb if $items variable has values.
Edit:
I put the below condition before <a href .... in hierarcy template
-MAk
How to show Breadcrumb in summary template of Products module, if hierarchy is empty (no product associated with Hir11). When I click on Hir11, this variable is empty ($items).
I can get the Breadcrumb by $entry->breadcrumb if $items variable has values.
Edit:
I put the below condition before <a href .... in hierarcy template
Code: Select all
{if $item.count>0 || is_array($item.children)}
<a href="{$item.url}">{$item.name} </a>
{else}
{$item.name}
{/if}