Question

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 )

Was it helpful?

Solution

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

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top