In my project, I am trying to shift positions of two templates in home page of "modern" theme by updating layout in
local.xml file. The template file names are as follows:
1) frontend\base\default\template\page/switch/languages.phtml 2) frontend\base\default\template\page/template/links.phtml
The above template files are referencing the below block names in layout folder of "base/default".
1) store_language 2) top.links
Both blocks are in same parent block which is "header". So, I wrote the local.xml like this in "default/modern/layout" folder.
<?xml version="1.0"?> <layout> <default> <reference name="header"> <remove name="top.links"/> <block type="page/template_links" name="top.linked" as="topLinked" template="page/template/links.phtml" before="store_language"/> </reference> </default> </layout>
The above update layout has removed the block "top.links" successfully but not adding the new block "top.linked" again before the "store_language" block. what I am doing wrong here?
For better understanding, please refer the below screenshot.
I have also some other questions like:
- Does updating of a layout should be done using "local.xml" file only?