Skip to content

Instantly share code, notes, and snippets.

@r-martins
Created July 4, 2012 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r-martins/3048432 to your computer and use it in GitHub Desktop.
Save r-martins/3048432 to your computer and use it in GitHub Desktop.
Inserir bloco no magento via xml
Primeiro devemos ter o text_list inserido em algum ponto-chave da pagina com o $this->getChildHtml()..
No XML ficaria assim:
<block type="core/text_list" name="before_main_div_end" as="before_main_div_end" translate="label">
<label>Fim do conteudo principal da pagina</label>
</block>
Depois é só inserir os phtml qdo necessário... Ex:
<reference name="before_main_div_end">
<block type="page/html" name="calendario.home" as="calendario.home" before="-" template="curso/calendario.phtml" />
</reference>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment