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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:41:44+00:00 2026-06-06T19:41:44+00:00

(Magento Version 1.6) I’m trying to display a custom category attribute I created to

  • 0

(Magento Version 1.6)

I’m trying to display a custom category attribute I created to use in Navigation.php. The attribute is working fine if I use it in a place like app/design/frontend/default/MYTEMPLATE/catalog/category/view.phtml or page.phtml. I’m able to change in the backend no sweat as well.

I’m trying to display this new attribute in app/code/core/Mage/Catalog/Block/Navigation.php. I’ve copied this file to app/code/local/Mage/Catalog/Block/Navigation.php and I’m doing my edits on this file.

Here is the code I’m trying to accomplish this with:

// Add Class if Category is a CMS Page 
    if (($level == 0) && ($category->getData('cms_category') == 1)) {
        $classes[] = 'cms-page';
    }

If anyone has a better way to go about this I’m not married to this solution.

  • 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-06T19:41:47+00:00Added an answer on June 6, 2026 at 7:41 pm

    You might have to instantiate a category model.

    $categoryComplete = Mage::getModel('catalog/category')->load($category->getId());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is meaning of Use Custom Permissions check-box in Magento installer? version 1.7.0.0
I'm developing a custom module for my Magento installation (version 1.6.2.0). I registered a
I have created a shopping cart price rule in my Magento store (version 1.4.1.1),
I have tried to use the lastest version of magento connector on mule 3.2.
I am working with Magento version 1.6.1.0 . I just went on to create
I was created a custom module for my Magento project. This module works in
I'm working with Magento version 1.4.1.1, and I want to save a value in
Magento allows you to set custom options for products -- for example, Deluxe version
Can anybody please suggest how to know the minimum PHP version, for working of
Magento Version 1.7.0.0 right i'm trying to reset the product list count to the

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.