What purpose does getChildHtml('top') and getChildHtml('bottom') have in wishlist/view?

magento.stackexchange https://magento.stackexchange.com/questions/3062

  •  16-10-2019
  •  | 
  •  

سؤال

I undersand getChildHtm() is used for rendering child blocks which are connected in layout xml files, but I can not find any template or block named 'top' or 'bottom'. Also both of them are empty strings. Why are those there in the first place and from where and how is the content eventually attached to them?

هل كانت مفيدة؟

المحلول

There are a lot of getChildHtml() calls throughout a lot of templates to give you the possibility to add new blocks.

If there is no child block, there is nothing rendered.

If you add a child block - tada - it gets rendererd :-)

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top