Free Joomla Templates

Design Resource

Free Icons
Free Vector

Bookmark Us

Add to: Digg Add to: Del.icoi.us Add to: Reddit Add to: Simpy Add to: StumbleUpon Add to: Netscape Add to: Furl Add to: Yahoo Add to: Blogmarks Add to: Technorati Add to: Spurl Add to: Google Add to: Blinklist Information

Top Templates

joomla templates arrow Template Tutorials arrow hide the module in Templates

hide the module in Templates

So you're building a template, and you're trying to figure out how to hide the module display when the module is not showing. Let me put it another way, you've built a fancy template that has some html associated with your module blocks, but when you unpublish your module, you don't want an empty html table with graphics hanging around

By using the mosCountModules function, you can hide these types of module blocks when your modules are unpublished (and of course show them when the repective modules are published).

  <?php if (mosCountModules( 'right' )) { ?>
 
    <td>
 
      <?php mosLoadModules( 'right' ); ?>
 
    </td>
 
  <?php } ?>
  
   
  
let us know if it worked for you. Good luck and jappy joomla-ing!

 
< Prev   Next >
 
Joomla Templates by Joomlashack
free joomla templates and free joomla 1.5 templates