Magento

eCommerce Software for Online Growth

Magento Forum

From setting up your store to managing your products, pages and promotions to generating detailed reports, the Magento User Guide empowers the user to utilize the platform for all of its vast capacity.
Available in eBook and Print formats – Download Now!!!
   
Adding callouts only to the homepage
 
Eminent Style
Sr. Member
 
Avatar
Total Posts:  84
Joined:  2008-02-17
Bromsgrove, United Kingdom
 

If I use the ‘3 column’ template option as set in the admin\cms\homepage it calls the left_col.phtml file from in catalog.xml.

If I add callouts using left_col.phtml then they appear on every page that the file is called. Can anyone suugest a way of displaying additional callouts, only on the homepage.

At the moment I having to use the ‘2 column right’ template with a custom left column entered in the ‘Content’ box (as per the original Magento demo site). Is this the best solution?

Thanks for any help and suggestions.

FYI, I have read through the design guide and feel I have a reasonable understanding of layouts in Magento. I am using v1.0 in a test environment.

 Signature 

Ben Bishop
Eminent Style - Hand Crafted Web Design & Development

 
Magento Community Magento Community
Magento Community
Magento Community
 
laurent
Member
 
Total Posts:  75
Joined:  2007-08-31
Paris, France
 

You can also put your layout code into ‘Layout Update XML’ textarea when you edit your CMS page.
As an exemple, I used it for an homepage to add a js file from my theme:

<reference name="root">
    <
reference name="head">
        <
action method="addItem"><type>skin_js</type><name>js/homepage_slider.js</name></action>
    </
reference>
</
reference>

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2010 Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
191338 users|753 users currently online|308869 forum posts