Magento Design Theme Integration – Part-5

2.4 Blocks:

Blocks are a way by which Magento distinguishes the array of functionalities in the system and creates a modular way to manage it from both visual and functional stand point. There are two types of blocks and they work together to create the visual output.

Structural Blocks

These are blocks created for the sole purpose of assigning visual structure to a store page such as

header, left column, main column and footer (Diagram 1).

Content Blocks

These are blocks that produce the actual content inside each structural block. They are

representations of each feature functionality in a page and employs template files to generate

(X)HTML to be inserted into its parent structural block. Category list, mini cart, product tags and

product listing…etc are each its own content block (Diagram 2).

Instead of including template after template as a typical eCommerce application would in order to gather the

whole (X)HTML output, Magento gathers and arranges page content through blocks.

———————————————————————————————————————————

CORNER OF BLOG:

To say harsh words when you have nice words, is like
plucking an unripe fruit when there are ripe ones.”

——————————————————————————————————————-

Leave a Reply