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 7984189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:11:26+00:00 2026-06-04T11:11:26+00:00

How can i display below toplinks in footer, i used below code in Footer.phtml

  • 0

How can i display below toplinks in footer,

enter image description here

i used below code in Footer.phtml file,

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

but the links are not displayed?. How can i do this?

Thanks in advance

footer.phtml

<div class="footer-container">
    <div class="footer">
        <?php echo $this->getChildHtml() ?>
        <?php echo $this->getChildHtml('newsletter') ?>

        <?php //echo $this->getLayout()->createBlock('cms/block')->setBlockId('sample_links')->toHtml() ?>

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

    <?php echo $this->getChildHtml('top.links'); ?> 


        <p class="bugs"><?php echo $this->__('Help Us to Keep Magento Healthy') ?> - <a href="http://www.magentocommerce.com/bug-tracking" onclick="this.target='_blank'"><strong><?php echo $this->__('Report All Bugs') ?></strong></a> <?php echo $this->__('(ver. %s)', Mage::getVersion()) ?></p>
        <address><?php echo $this->getCopyright() ?></address>
    </div>
</div>
</div>
  • 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-06-04T11:11:27+00:00Added an answer on June 4, 2026 at 11:11 am

    Classic learning-to-theme-Magento question!

    The relationship of one block to another is most evident in templates (as your current effort demonstrates). The ability for a parent (footer, in your case) to trigger rendering of another block requires that a parent-child relationship be established. This typically happens in layout update XML.

    If this relationship were core, it is likely that you would see the following in the base/default theme’s layout/page.xml file:

    <block type="page/html_footer" name="footer" ...>
        <!-- other child block directives -->
        <block type="page/template_links" name="top.links" as="topLinks"/>
    </block>
    

    In your case, because you are adding a relationship between two existing blocks, you can set up a relationship between block instances in a special end-user layout xml file named local.xml which you should place in your custom theme’s layout folder. Here is what it should look like:

    <?xml version="1.0"?>
    <layout>
        <default><!-- effectively: "do this on all pages" --> 
            <reference name="footer"><!-- parent block -->
                <action method="insert"><!-- this PHP class method sets the relationship -->
                    <block_name_to_insert>top.links</block_name_to_insert><!--use the block name in the layout, not the alias. See Mage_Core_Block_Abstract::insert() -->
                    <sort_relative_to_other_childname/><!-- empty val is fine here -->
                    <sort_before_or_after/><!-- not relevant -->
                    <alias>topLinks</alias><!-- because you are using the original alias, need to re-specify that here -->
                </action>
            </reference>
        </default>
    </layout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The code below working for only first div. I can't display other divs when
I'm using the code provided below to display time and date. can anyone help
I have an XML file (see below) and can display all the Product Names
I can display a simple Visual Basic inputbox from a PowerShell script like this:
With h:datatable we can display data as follows Jems tom chirs harry but can
Ok, here is setup. Note the code below is SIMPLIFIED version. PHP 5.2 ENGINE:
The below will display the buddyList in textview. How can i display the same
Previous question which links onto this and has any addition code ref should I
How can I display a float number = 0.999 as 0.99 ? The code
How i can display all applications icons and name which are installed in device

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.