Magento Forum - UK Magento Forum (Unofficial)

An unofficial but dedicated Magento Forum for Magento Users, Designers and Developers

To create new structure like left column and right colum

A forum for web designers working with the Magento system.

To create new structure like left column and right colum

Postby bruno.adodis » Mon May 03, 2010 2:53 pm

1)Create a new template within: design\frontend\default\my_theme\template\callouts\my_callout.phtml

Within my_callout.phtml create the HTML which you wanted to display, i.e. anything you want (for example, <h6>Welcome All</h6>).

2) Then modify the layout file page.xml to include a reference to this template by including the following line:

<block type="core/template" name="right.custom.callout" as="my_callout" template="callouts/my_callout.phtml"/>

3) Then in the page layout file (for example 1column.phtml) add a “getChildHTML” method like this:

<?php echo $this->getChildHtml('my_callout') ?>

Hurray it works! :o The custom HTML within my_callout.phtml is now displayed on my page…
E-Commerce Website Development, E Commerce Development Companyhttp://www.ecommerce-web-developers.com/
bruno.adodis
 
Posts: 15
Joined: Wed Apr 28, 2010 6:41 am



Return to Magento Designers

cron