Joomla conditionals


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. <?php if($this->countModules('condition')) { ?>
  2. do something
  3. <?php } else { ?>
  4. do something else
  5. <?php } ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.