Friday 17 May 2013

include js file in header magento

 add your js file in your magento js folder in   magento/js/myfolder

open page.xml file

put this code in page.xml

<action method="addJs"><script>myfolder/myjs.js</script></action>




add link at top link position magento


adding help page link
   open youre theam layout page xml  put this code inside header block



<block type="page/template_links" name="top.links" as="topLinks">
<action method="addLink" translate="label title"><label>Help</label><url>help</url><title>Help</title><prepare/><urlParams/><position>1</position></action>
</block>