Skip to content

Instantly share code, notes, and snippets.

@Uriel29
Created September 4, 2014 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Uriel29/8d6d16c79d311c33c52c to your computer and use it in GitHub Desktop.
Save Uriel29/8d6d16c79d311c33c52c to your computer and use it in GitHub Desktop.
Retirar o Content do Joomla da página inicial e de um Item de menu qualquer
?php
$menu = &JSite::getMenu(); if ($menu->getActive() != $menu->getDefault()) // verifica se é a página inicial { ?>
<?php
$currentMenuId = JSite::getMenu()->getActive()->id ;
if ($currentMenuId != "119") // verifica se a página pertence ao Item de menu 119 { ?>
<jdoc:include type="component" />
<?php } ?>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment