Frage

I am using joomla2.5,I need to have a jquery effect on one of my page(not the home page) so I am wondering can I include jquery to joomla article if not then what should I do?

War es hilfreich?

Lösung

You can include the jquery in index.php in the <head> section.

Andere Tipps

You can use addscript function in template to load jquery in the head section.

<?php
$document = JFactory::getDocument();
$document->addScript('/media/system/js/sample.js');
?>

But be aware that you have to use noConflict function, because joomla sometimes uses mootools framework.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top