Pergunta

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?

Foi útil?

Solução

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

Outras dicas

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top