Posted By

sfjalar on 04/23/09


joomla conditionals countmodules

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


Joomla conditionals

 / Published in: PHP

Controls what actions the template's index.php file takes depending on the current state of a module or a set of modules

  1. <?php if($this->countModules('condition')) { ?>
  2. do something
  3. <?php } else { ?>
  4. do something else
  5. <?php } ?>

Report this snippet  

You need to login to post a comment.