Hiding a module position if no modules are assigned to it.

Written by Matt on 9 November 2009

Topics: Core tips

This basic “if” statement allows you to show or hide a module position, based on whether any modules are assigned to that page.
A typical example of this, would be that you want to show the “latest news” mod on your home page and not on

So, if you had a module assigned to your “user1″ position on your home page – the module would only show up on the home page
and not on any other the other pages.

Get notified about new tips & tricks for Joomla:

RSS

Click here to subscribe via RSS feed


subscribe

Click here to receive updates via email

Leave a Comment Here's Your Chance to Be Heard!

CommentLuv Enabled

Subscribe without commenting

Joomla! is the registered trademark of Open Source Matters, Inc and Joomlatips.com is not affiliated with or endorsed by Open Source Matters, joomla.org or the Joomla! project.