In order to include external js files in specified pages ….
Add below line of code in required  xml file…
 <reference name="head">
 <block type="core/text" name="myjscode"><action method="setText"><text><![CDATA[<script language="javascript" type="text/javascript" src=""></script>]]></text></action></block>

For eg: let we need this js in products list… then take catalog.xml from our layout theme and include above line of codes inside ‘<catalog_category_default translate=”label”>’ or ‘<catalog_category_layered translate=”label”>’

 Leave a Reply




You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© 2014 Developers Corner Suffusion theme by Sayontan Sinha