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

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

Submit a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>