digitalpoint
Well-known member
A simple change to the navigation template would allow an optional item count to be used with custom tabs (it's optional so it would also maintain backward compatibility).
In the navigation template, if this:
was changed to this:
You could pass a "counter" parameter when building the custom tab and it would look something like so:
In the navigation template, if this:
Code:
<a href="{$extraTab.href}" class="navLink">{$extraTab.title}</a>
Code:
<a href="{$extraTab.href}" class="navLink">{$extraTab.title}<xen:if is="{$extraTab.counter}"><strong class="itemCount"><span class="Total">{$extraTab.counter}</span><span class="arrow"></span></strong></xen:if></a>

Upvote
16