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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:19:34+00:00 2026-05-13T16:19:34+00:00

I would like a block that display slide show on left side for certain

  • 0

I would like a block that display slide show on left side for certain category. I got the slide show block display in all pages by referencing left column in layout file, however. We need the slide show appear only in certain category(id 225) on the left side.

My solution road map so far:
1. rewrite the particular category’s url to my customized module/controller/action(test/index/index)
2. In test/index/index layout file test.xml i would like to override catalog handle catalog_category_default(i got this by using Alan Storm Layout Views http://alanstorm.com/category/magento) that will have updated left column with my new slide show block. This is how looks my test.xml file

This is giving me following error:
Fatal error: Call to a member function getMetaTitle() on a non-object in /app/code/local/Mage/Catalog/Block/Category/View.php on line 43

From the error i conclude that the handle is being overided, however there is missing category id because the line 43 is:

if ($title = $this->getCurrentCategory()->getMetaTitle()) {

As you see, i have tried to set the category id in the test.xml layout file but without much success.

How to set category id in layout file? Is this doable solution or right way to do? Am i really overiding the handle?

Thanks Margots

  • 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-13T16:19:35+00:00Added an answer on May 13, 2026 at 4:19 pm

    In the admin section, there’s a field when editing a category to apply layout updates, you can add your block XML there. If you’d prefer it be in the code, then category pages add a ‘handle’ that includes their ID, ‘CATEGORY_123’ for example and you can add your block by referencing that:

    <CATEGORY_123>
      <reference name="left">
        <block type=""> (etc.)
      </reference>
    </CATEGORY_123>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know how to display an image that is bigger than the screen. That's
I have a variable number of divs acting as columns, and I would like
I have implemented a Facebook Like button into my site. I wanted to make
My problem is I can't get this jQuery slider to start from .1 to
I am trying to get the source page of a webpage on a different
I've a custom property on a user control which has multiple state/modes. If this
I am using XSL FO to generate a PDF file containing a table with
Current function: function SetPopup() { x$('body').setStyle('overflow', 'hidden'); x$('#divOne').setStyle('height', document.body.offsetHeight + 'px'); x$('#divOne').setStyle('width', 100 +
I have been working with jquery-ui's sortable demo for a while. On looking closely,
Given the following semantic markup: <h3> SCOPE OF WORK. </h3> <p>Lorem ipsum dolor sit

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.