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 )
Asked
Active
Viewed 2,221 times
2 Answers
6
if (JRequest::getCmd( 'option' ) == 'com_joomgallery'){
echo ' JoomGalery extension in use';
}

Benn
- 4,840
- 8
- 65
- 106
0
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

Brent Friar
- 10,588
- 2
- 20
- 31