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 would like to have a div display:inline-block with overflow:hidden. My problem is that
i would like to have a block on my drupal site(latest version) that displays
If you have some blocks of code that you would like to prevent execution
I would like to implement an application for block a mobile number for receiving
I would like to test some exception handling logic in the empty catch block
I would like to know if it is possible for block elements, floated in
I'm working on a block module and would like to perform ajax operations on
I would like to find all comment blocks(/*...*/) but the function g_regex_match_full always returns
I have a problem. I would like to use the animate() function to slide
I have a block of form elements which I would like to clone and

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.