Magento: Display Categories in Sidebar

New Wave New Thinking

Display Categories in Sidebar

It seems my posts lately are always in relation to solving a problem or answering a question for someone else. If you’re looking for a way to display categories in the sidebarchange category display, or create a category menu then this post is probably for you.

CREATING THE BLOCK

The first thing you need to do is create a block in your layout. Navigate to/app/design/frontend/default/default/layout/catalog.xml

The first thing in your layout is a definition of the default layout noted by the comment “Default layout, loads most of the pages” depending on where you want to put your category nav (right sidebar, left sidebar, footer, etc) you’ll need to define the block a little differently. I’m going to do it with the left sidebar so you see what’s going on.

<reference name="left"> 
     <block type="catalog/navigation" name="catalog.leftnav"
template="catalog/navigation/left_nav.phtml" /> 
</reference>

Okay, so what i did…

View original post 168 more words

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s