magento different types of blocks


Example

  • Mage_Core_Block_Template
  • Mage_Core_Block_Text_List
  • Mage_Core_Block_Messages
  • Mage_Core_Block_Text_Tag
  • Mage_Core_Block_Text
  • Mage_Page_Block_Template_Links All blocks are either structural blocks or All blocks are either structural blocks or content blocks. Example:
  • core/text_list

Example of a structural block.

It does not utilize templates; it's simply used to output the content of all of its child blocks one after the other.

  • core/template

Example of a content block.

The output of this type of block depends on the assigned template. It's child blocks are output within it's template via the getChildHtml('block_name') method.. Example: core/text_list - Example of a structural block. It does not utilize templates; it's simply used to output the content of all of its child blocks one after the other. core/template - Example of a content block. The output of this type of block depends on the assigned template. It's child blocks are output within it's template via the getChildHtml('block_name') method.