2015-10-30

How to add external js to magento

Add to your layout:
<reference name="head">
   <block type="core/text" name="my.external.js">
      <action method="setText">
        <text>
           <![CDATA[<script type="text/javascript" src="https://domain.com/my_file.js"></script>]]>
        </text>
      </action>
   </block>
</reference>

1 comment:

  1. Best Casinos near Foxwoods and Harrah's in Iowa
    Foxwoods is the largest 토큰 룰렛 casino 개집왕 in Iowa. 썬 시티 The Foxwoods Resort and Casino (formerly Foxwoods) is golden star the only casino owned 재제 and operated by

    ReplyDelete