|
I got two references I would like to add to a categories Custom Layout Update field. When I add them separately it works ok. But when I add them both to the Custom Layout Update field of a Category, I get a “Please enter valid XML data”.
First reference
<reference name="head">
<action method="addItem">
<type>skin_js</type>
<script>js/my_script.js</script>
</action>
</reference>
Second reference
<reference name="left">
<block type="core/template" name="submenu.men" template="submenus/men.phtml" />
</reference>
I want to add the js file in the head, where it should be. but I see no other solution than calling it from the phtml file. Can someone tell me the secret of adding multiple references to a categories Custom Layout Update field?
|