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

Written by on November 9, 2009 in Core tips - No comments

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.

About the Author

Matthew King is the excessively caffeinated head of customer service and system administrator for JoomlaJunkie. He loves paintball and dry humor. Matt also sells web hosting and does website design at ColumbusGEEK.com. He is based in Columbus, Ohio (USA).

Leave a Comment