Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Block naming in page.xml problem…
 
Sugarmoo
Jr. Member
 
Total Posts:  1
Joined:  2008-05-28
 

I’m using the code below in my theme layout page.xml file so I can use a few different headers on 6 different magento cms pages. I can get the headers to appear but the blocks inside (ie top.links, topMenu) are not appearing if I use any layout other than the one using the main header.phtml template. Is there something totally wrong with the xml here??

<block type="page/html_header" name="news_header" as="news_header" template="page/html/news_header.phtml">
                <
block type="page/template_links" name="top.links" as="topLinks"/>
                <
block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
                <
block type="core/text_list" name="top.menu" as="topMenu"/>
            </
block>

            <
block type="page/html_header" name="header" as="header" template="page/html/header.phtml">
                <
block type="page/template_links" name="top.links" as="topLinks"/>
                <
block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
                <
block type="core/text_list" name="top.menu" as="topMenu"/>
            </
block>

<
block type="page/html_header" name="story_header" as="story_header" template="page/html/story_header.phtml">
                <
block type="page/template_links" name="top.links" as="topLinks"/>
                <
block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
                <
block type="core/text_list" name="top.menu" as="topMenu"/>
            </
block>

<
block type="page/html_header" name="tastings_header" as="tastings_header" template="page/html/tastings_header.phtml">
                <
block type="page/template_links" name="top.links" as="topLinks"/>
                <
block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
                <
block type="core/text_list" name="top.menu" as="topMenu"/>
            </
block>

<
block type="page/html_header" name="membership_header" as="membership_header" template="page/html/membership_header.phtml">
                <
block type="page/template_links" name="top.links" as="topLinks"/>
                <
block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
                <
block type="core/text_list" name="top.menu" as="topMenu"/>
            </
block>

<
block type="page/html_header" name="mailing_list_header" as="mailing_list_header" template="page/html/mailing_list_header.phtml">
                <
block type="page/template_links" name="top.links" as="topLinks"/>
                <
block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
                <
block type="core/text_list" name="top.menu" as="topMenu"/>
            </
block>
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top