Select Page

Target a specific page in Joomla

This can be used in your Joomla template to target a specific page, use the menu Joomla menu ID. <?php $menuID = JSite::getMenu()->getActive()->id ; if ($menuID == '6') { echo ''; }...

How to use the page class feature in Joomla

This code can be used to target pages based on the page class property in the Menu area. <?php $app = JFactory::getApplication('site'); $params = & $app->getParams('com_content'); $pageclass = $params->get('pageclass_sfx'); ?> class="<?php echo...

Email Cloaking for Joomla

Simple Joomla code to cloak an email address. $email = 'email@domain.com'; $cloaked = JHTML::_('Email.cloak',$email); echo $cloaked;