Joomla IF Module Position


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

Joomla code to check and see if module exists on page.


Copy this code and paste it in your HTML
  1. <?php if($this->countModules('left')) : ?>
  2.  
  3. <!-- Code to appear if module exists on page goes here -->
  4.  
  5. <?php endif; ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.