Skip to content

Instantly share code, notes, and snippets.

@benmarks
Created September 26, 2013 13:46
Show Gist options
  • Save benmarks/6714446 to your computer and use it in GitHub Desktop.
Save benmarks/6714446 to your computer and use it in GitHub Desktop.
Magento Layout XML - Block displacement via alias
<?xml version="1.0"?>
<layout>
<default>
<block name="ben" type="core/text">
<action method="setText">
<text>SOME TEXT</text>
</action>
</block>
<reference name="header">
<action method="insert">
<block>ben</block>
<sibling></sibling>
<after/>
<alias>topLinks</alias>
</action>
</reference>
</default>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment