Magento News

 

How to call block and all of its (or one or two) of its children (childhtmls) (with procecessed data) outside of Magento?

To illustrate things really easy, here’s the question(page/html_header)

<div class="header-container">
<div class="header-panel">
<div class="switches"></div>
    <p class="welcome-msg">{{THIS IS ALWAYS EMPTY, I NEED TO SEE WELCOME FIRST NAME LAST NAME}}</p>
    <ul class="links">
</div>

So basically this is the problem. That welcome-msg is always empty. I can’t seem to get data into that children html. I know that this welcome message is coming from a childhtml not from the block itself but how to get that block with its children so I have a complete html.

Apperently I need to plug the function getWelcome() (it’s in Mage_Page_Block_Html_Header) into that welcome-msg area but how???

I have been struggling over this for almost 2 days now.

Also please remember all these needs to be done outside of Magento.

thanks

How to call block and all of its (or one or two) of its children (childhtmls) (with procecessed data) outside of Magento?

Possibly Related Posts:


 

Leave a Reply