Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Normal
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:
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:
We use essential cookies to make this site work, and optional cookies to enhance your experience.
See further information and configure your preferences