2

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 )

Damian
  • 2,930
  • 6
  • 39
  • 61

2 Answers2

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