Hi,
in the old menu templates in vs. 1.x {if $count > 0} was used to query if there is any menu content.
In Navigator-templates it doesn't seem to work. So the wrapping <ul></ul> is left even if there isn't menu content.
I would bet there is an alternative for Navigator. Will anybody tell me?
Navigator - What happened to {if $count > 0}
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Navigator - What happened to {if $count > 0}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Navigator - What happened to {if $count > 0}
Thanks. For visitors with the same temporarily ignorance as me I post a solution more directly:
Changing:
{if isset($nodes)}{strip}
to
{if isset($nodes) && $nodes|@count}{strip}
Changing:
{if isset($nodes)}{strip}
to
{if isset($nodes) && $nodes|@count}{strip}