Pergunta

I need to check if JoomGallery has been loaded to a page ( "option=com_joomgallery" in URL), to load module in this condition. Parsing URL is not a good idea. (in PHP )

Foi útil?

Solução

if (JRequest::getCmd( 'option' ) == 'com_joomgallery'){
        echo ' JoomGalery extension in use';
}

Outras dicas

I use Advanced Module Manager for module control. This will allow you to load modules conditionally whether or not you have a menu item for the component or not.

http://extensions.joomla.org/extensions/access-a-security/modules-management/10307

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top