Magento Themes and Magento Extensions

Magento : Reposition BreadCrumb block inside content

Posted on March 6th, 2013 | Posted by admin

Recently on one of my projects, I came across a situation where I had to display the breadcrumb on the same line as the product list toolbar on the product listing page aka category page. Since Magento displays the breadcrumb at the top of the pages, I had to bring the breadcrumb block right next to the product toolbar. And I didn’t want to reposition the breadcrumb for all pages.

I tried

<reference name="root">
<remove name ="breadcrumbs" />

and put the breadcrumb inside the product listing block

Adding an additional content block to your Magento page

Posted on November 13th, 2012 | Posted by admin

It turns out that once you understand Magento’s complicated template layout structure it becomes pretty easy to add content blocks wherever your website needs them. This is just a quick explanation of how that works.

So first things first, find your page layout file. This will be under the app design folder in your themes layout folder and will be named page.xml. This file contins an element called default that (in magento terms) is called a Hook. A hook represents a page, or page type – in this case the default hook is the layout for any page that hasn’t got it’s own specific hook. Usually everything will be defined in here and then the other hooks will add and remove blocks, rather than starting from scratch each time. Inside the hook element you will then find a number of blocks, the most interesting to us are the header and footer blocks. There are other blocks defined but the header and footer are the bext example as they are built using their own templates and contain both specific blocks and a block that can have other blocks added to it (a text_list). Following the same way those blocks work we want to define a block that in our design will go after our pages main content but before the footer. Lets start with the basics…

1 <block type="core/text_list" name="content.footer" as="content_footer" translate="label">
2 <label>Content Footer</label>
3 </block>

Customize the Content Layout on Magento Category Pages

Posted on October 17th, 2012 | Posted by admin

Add content above and below Magento product listings using the Category Description available in 1.4, then updating where the static block displays on the category page when customizing the Display Settings to include both a static block and products.

The main focus of being able to customize the content in Magento category pages was to add the ability for me to be able to have an introductory paragraph of content, but also add additional content after the product listing. Thus I was able to add a foundation of custom content to main category pages without pushing the products further and further down the page.

First you will want to create a static block that will become the footer content for a category. Once created you can then update your category to call this static block. Navigate to the Category you want to include the content below the product listing and update the display settings. Under ‘Display Settings’, select ‘static block and products’ from the Dsiplay Mode dropdown. Then select the name of the static block you created under the CMS Block dropdown.