I'd like to know how to add external jQuery files to magento (on every page). And what is the best practice to do so?
Thanks
Just do this.
on the frontend (a default theme) do the modification for " app / design / frontend / default / default / layout / page.xml and then add this :
<action method="addJs"><script>jquery/jquery.min.js</script></action> to block with name “head” .
And on the backend (a default theme) do the modification for " modify app / design / adminhtml / default / default / layout / main.xml. :
Thats how javascript files will be included in every page header.
And here is a link to which you can refer and learn more.
http://www.fontis.com.au/blog/magento/using-jquery-magento " to learn more.
here is how you gotta write the " noConflict " .
<default>
<reference name="head">
<block type="core/text" name="google.cdn.jquery">
<action method="setText">
<text><![CDATA[<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script><script type="text/javascript">jQuery.noConflict();</script>]]>
</text>
</action>
</block>
</reference>
Good luck
jQuery.noConflict() method would have been already applied, right? So will just adding jQuerry files to the page.xml will do the trick?