Search code examples
phpjoomlamodulefilestructure

Joomla modules file structure to store jquery core and some image files


I'm a newbie to joomla. I'm trying to create a joomla module which uses some jquery actions and some image files.

Can anyone suggest me a best method to place the jquery-core and jquery plugin files inside the module. I also wants to add some image files with my module.


Solution

  • To include the JQuery you should use $document->addscript()

    http://docs.joomla.org/Adding_JavaScript

    You should be aware that it might conflict with Mootools already loaded so you might need to use the noconflict flag for jquery to get it to work.