• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Navigator - What happened to {if $count > 0}
PostPosted: Wed Oct 24, 2018 10:06 am 
Offline
Power Poster
Power Poster

Joined: Sun Aug 17, 2008 9:29 am
Posts: 1084
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? :)


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Navigator - What happened to {if $count > 0}
PostPosted: Wed Oct 24, 2018 12:13 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 8020
Location: Fernie British Columbia, Canada
https://www.smarty.net/docs/en/

_________________
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Navigator - What happened to {if $count > 0}
PostPosted: Wed Oct 24, 2018 1:38 pm 
Offline
Power Poster
Power Poster

Joined: Sun Aug 17, 2008 9:29 am
Posts: 1084
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}


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
A2 Hosting