Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7547719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:31:29+00:00 2026-05-30T09:31:29+00:00

Small part of Page.xml: <layout version=0.1.0> …. <default translate=label module=page> <label>All Pages</label> <block type=page/html

  • 0

Small part of Page.xml:

<layout version="0.1.0">
     ....
      <default translate="label" module="page">
        <label>All Pages</label>
        <block type="page/html" name="root" output="toHtml" template="page/2columns-left.phtml">
             <block type="page/html_header" name="header" as="header" /> <!-- work -->
             <block type="page/html_wrapper" name="u.Top.Menu" as="u_Top_Menu" translate="label"> <!-- doesn't work -->
                    <label>top menu</label>
                    <action method="setElementTagName"><value>div</value></action>
                    <action method="setElementClass"><value>sub-menu</value></action>
             </block>
         ...
         </block>
....

And in the 2columns-left.phtml output it:

<?php echo $this->getChildHtml('u_Top_Menu'); ?>

But it always retuns empty value. I’m confused here a bit. What I’m doing wrong here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T09:31:30+00:00Added an answer on May 30, 2026 at 9:31 am

    This is what happens when you forget to add the children block to the html wrapper block. Look at this block class source code:

    class Mage_Page_Block_Html_Wrapper extends Mage_Core_Block_Abstract
    {
        /**
         * Whether block should render its content if there are no children (no)
         * @var bool
         */
        protected $_dependsOnChildren = true;
    
        /**
         * Render the wrapper element html
         * Supports different optional parameters, set in data by keys:
         * - element_tag_name (div by default)
         * - element_id
         * - element_class
         * - element_other_attributes
         *
         * Renders all children inside the element.
         *
         * @return string
         */
        protected function _toHtml()
        {
            $html = empty($this->_children) ? '' : trim($this->getChildHtml('', true, true));
            if ($this->_dependsOnChildren && empty($html)) {
                return '';
            }
    

    …

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to generate a small part of the page using jquery which is
I have small page which has label, DropDownList and a submit button. <div> <asp:label
I have a small 'screen' that pops up over part of my page. This
I have a requirement to change a very small part of the WPF ComboBox's
I have an application that I have to run as Administrator. One small part
I have a small lightweight application that is used as part of a larger
I made small program to divide large pictures and take part of them. When
I work on a small Agile development team which is part of a large,
I am developing a small excel plugin. As part of it I need to
I'm creating a simple page with a form. Part of the form requires uploading

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.