Detecting page type in Joomla


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



Copy this code and paste it in your HTML
  1. <?php
  2. if ( JRequest::getVar('view') == 'frontpage' ) {
  3. ?>
  4. <!-- display your home page HTML here -->
  5. <?php
  6. } else {
  7. ?>
  8. <!-- display your internal page HTML here -->
  9. <?php } ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.