문제

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?

도움이 되었습니까?

해결책

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

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top