Home » Forum
NoNumber!

Joomla! Extensions •
Web Development •
Web Design •

I try to respond within 24 hours (excluding weekends). If I haven't responded by then, feel free to post a reminder or bug me via email.
Welcome, Guest
Please Login or Register.    Lost Password?

Option "Hide if empty" doesn;t seem to work.
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Option "Hide if empty" doesn;t seem to work.
#7643
Option "Hide if empty" doesn;t seem to work. 4 Months, 3 Weeks ago  
The few times I tried the "Hide if empty" option, it didn't work as expected. I assume in most or all cases it has something to do with the template; screen estate being reserved and/or styling being applied to empty module positions that contain no data. How nice would it be, if we had a JDocumentHTML::countModules() equivalent that not only determines if any modules are active for a given position, but also if any of those modules contain data. Can the "Hide if empty" logic be made easily accessible, from within a template, to achieve that?
pjdevries
Posts: 50
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7644
Re: Option "Hide if empty" doesn;t seem to work. 4 Months, 3 Weeks ago  
the "Hide if empty" option should return empty for modules with no output.
That means if you have 3 empty modules in a position, the template would see this as no modules (so countModules would return false).
At least, that's the whole idea.
If it doesn't work, could you tell me what modules you are testing on? Or give me admin access...
Peter van Westen
Admin
Posts: 4280
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! NºNumber!NºNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#7646
Re: Option "Hide if empty" doesn;t seem to work. 4 Months, 3 Weeks ago  
On the current site I used it for a (sub)menu in the right column. That menu only shows level 1-N of the main menu, and is only displayed when the corresponding menu-item in the main menu is active. However, when the menu is not displayed, the right column still shows a small rectangle.

The menu's are not accessible for guest users, so you need to login to see what I mean. Where can I send the login credentials?
pjdevries
Posts: 50
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7655
Re: Option "Hide if empty" doesn;t seem to work. 4 Months, 3 Weeks ago  
It might be that the module outputs an empty list. Something like:
<ul></ul>

That is not seen as empty.
So take a look in the html of the site to see if there is any html output placed by the module.
Peter van Westen
Admin
Posts: 4280
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! NºNumber!NºNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
Go to topPage: 1
Joomla Open Source Training