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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:19:48+00:00 2026-05-21T02:19:48+00:00

I need to include a custom block on my templates, and even thoguh I

  • 0

I need to include a custom block on my templates, and even thoguh I read several instructions on how to do it, none seem to work, and none answer all issues (for me).

I have a template file here:
[templates]/aw_blog/blog-bottom.phtml

I am using a custom theme according to best practices for Magento 1.4.1 and up, so I am working with local.xml to override the page.xml in the base theme.

In my 2column-left.phtml template, I call the blog-bottom template like so:

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

So I know that the missing link is local.xml, but the various options I tried produce no results. So, what is the correct way to refer to this block in local.xml so that it is available to pages using 2column-left? I have both CMS and category pages using 2column left, and I’d want to show this block on all of them.

Thanks.

  • 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-21T02:19:48+00:00Added an answer on May 21, 2026 at 2:19 am

    You’re right, You have to add your block declaration in your layout xml. I don’t use any local.xml file, I don’t know what it is exactly, sorry 😐

    Anyway, if you want to add this block in, say, the left column you have to declare it this way (if the block named “left” is already declared)

    <reference name="left">
        <block name="customblock" type="core/template" template="path/to/your/template" />
    </reference>
    

    However, fOr this kind of block (which will be present on almost every page) I would rewrite the page.xml file and add the block directly in the declaration of the “left” block like this :

    <block type="core/text_list" name="left" as="left" translate="label">
        <label>Left Column</label>
        <block name="customblock" type="core/template" template="path/to/your/template" />
    </block>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how can I include a custom library in Drupal ? For example I need
I'm using lxml to programatically build HTML and I need to include a custom
In my iPhone App, I need custom fonts. I know how to include it
I need to include a custom field when PayPal notifies me of a payment.
I need to include a custom PHP page in Wordpress. So what I need
I need to place several instances of a custom QPushButton subclass adjacent to one
I need to include some kind of notifications in a sidebar gadget, preferably systray
I need to include a dashboard in a JavaScript application I am building. The
I have a prototype model where I need to include the following extension methods
I'm packaging an ejb and I need to include some .classes from a dependency

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.