I have a module, which is always published. Only sometimes, the module has no data. When the module has no data I dont want to show the css either.
Right now I have the following code:
Code: Select all
<?php if ($this->countModules('user7')): ?> <div id="submenu_bg"></div> <div id="submenu_wrap"> <div id="submenu"> <jdoc:include type="modules" name="user7" /> </div> </div> <?php endif; ?>
Is there another function which I can use? Php if empty doesnt work.
Thanks in advance.