Created
July 4, 2012 17:20
-
-
Save r-martins/3048432 to your computer and use it in GitHub Desktop.
Inserir bloco no magento via xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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