Reply to thread

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:

[code]<a href="{$extraTab.href}" class="navLink">{$extraTab.title}</a>[/code]

was changed to this:

[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>[/code]

You could pass a "counter" parameter when building the custom tab and it would look something like so:


Back
Top Bottom