Posted By

sfjalar on 04/23/09


Tagged

joomla conditionals countmodules


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

benrudolph
hanzwurzt


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.