Navigator - What happened to {if $count > 0}

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
antibart
Power Poster
Power Poster
Posts: 1155
Joined: Sun Aug 17, 2008 9:29 am

Navigator - What happened to {if $count > 0}

Post by antibart »

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? :)
calguy1000
Support Guru
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}

Post by calguy1000 »

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.
antibart
Power Poster
Power Poster
Posts: 1155
Joined: Sun Aug 17, 2008 9:29 am

Re: Navigator - What happened to {if $count > 0}

Post by antibart »

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}
Post Reply

Return to “Modules/Add-Ons”