The template system architecture of Magento

The template architecture is broken into three areas—two for development of the theme and one for the containment of the assets:

• /app/design/frontend/default/<template_name>/

layout/—For all the XML files declaring which module tied functions should be called to which template files

template/—For all the templates processing the output that is passed from functions called from layout/ and structured into the final output to the user.

• /skin/frontend/default/<template_name>/—For the containment of all assets relating to our template, images, CSS, Flash, and JavaScript.

Structural blocks and content blocks
Each theme contains structural and content blocks. Structural blocks are the ones that lay out the theme into sections. Let’s take a look at a three-column layout.
The following are the structural blocks in a three-column layout:
• header
• left
• content
• right
• footer

Structural blocks and content blocksEach theme contains structural and content blocks. Structural blocks are the ones that lay out the theme into sections. Let’s take a look at a three-column layout.The following are the structural blocks in a three-column layout:• header• left• content• right• footer
MAGENTO TEMPLATE ARCHITECTURE

One thought on “The template system architecture of Magento

Leave a Reply

Your email address will not be published. Required fields are marked *