Search code examples
phphtmlxmlmagentoaccount

Magento call child html inside static block


I am a bit confuse about this. I have

<?php echo $this->getChildHtml('accountLinks') ?>

under header.phtml. How am i going to call 'accountlinks' inside my new static block in Admin?

Thank you!


Solution

  • First,check any accountLinks alias name is exit in layout all xml file. Suppose

    If i found that store_language is exit in page.xml and this called in header.phtml $this->getChildHtml('store_language') ;

    if i want to call this file any where the used below code

     echo $this->getLayout()->createBlock('page/switch')
    ->setTemplate('page/switch/languages.phtml')->toHtml();
    

    Same way you need to follow