I am a newbie in magento, it seems to be an easy question but i spend hours still cannot figure it out..
I installed the sample data for Magento1.9 (attached), the bottom blocks (title in blue color) "Company" and "Connect with us" are two static blocks. But i cannot figure out how they are placed there, neither the CMS-page or other CMS-block have mention them. And i checked all XML files, none of these static blocks are mentioned! Why?
How can I modify, for example, put the "company" block after the "Connect with us" block?
Thanks a lot for anyone can help!
Best Answer
pakicle, Magento is manged block positioning using before and after tags xml file ...
first check what is before and after tags in layout xml
name :
This is the name by which other blocks can make reference to the block in which this attribute is assigned
.before (and) after
These are two ways to position a content block within a structural block. before="-" and after="-" are commands used to position the block accordingly at the very top or very bottom of a structural block.
As footer link are manged from below codes
Company:
Quick link:
Account:
Connect with US:
As you want footer link sort order
corresponding block id are
footer_links>footer_links2>cms_footer_links_sm>cms_footer_links
Now i can ordering these link blocks using tags. Connected with Us->cms_footer_links_sm Company > cms_footer_linksI have add before......tags as cms_footer_links footer_links2
know more about layout: http://www.magentocommerce.com/design_guide/articles/intro-to-layouts