Try the Demo

Magento Forum

   
Help me decipher this template system
 
nivekiam
Jr. Member
 
Total Posts:  30
Joined:  2007-11-28
 

I found this is in 2columns-right.phtml.

<!-- [start] global messages -->
    
<?=$this->getChildHtml('global_messages')?>
<!-- [end] global messages -->
I found what I think was a corresponding line in main.xml, but can’t for the life of me figure out what file that is calling.  I’ve dug all over the admin section and can’t see anywhere you’d set “global messages” from the admin interface.

Did I just happen to choose something that’s not yet implemented?  I tried creating the file frontend//default/default/template/core/messages.phtml and editing main.xml to change:

<block type="core/messages" name="global_messages" as="global_messages"/>

to this

<block type="core/messages" name="global_messages" as="global_messages" template="core/messages/messages.phtml"/>

That didn’t seem to do anything either.

 Signature 

Kevin

 
Magento Community Magento Community
Magento Community
Magento Community
 
Michael
Magento Team
 
Total Posts:  826
Joined:  2007-08-31
 

Hi Kevin,

<block type="core/messages"
calls app\code\core\Mage\Core\Block\Messages.php

You can look into getHtml() and getGroupedHtml() methods in that class for details.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top