Try the Demo

Magento Forum

   
Full Width Static Blocks on Homepage
 
ryan777
Jr. Member
 
Total Posts:  30
Joined:  2011-02-21
 

I’ve been looking around for a few hours on this one, but all I found was one other thread about this. What I want to do is create a full width static block above a 2 column left layout. This static block only needs to be on the homepage. I followed the steps mentioned in the thread above but I can’t get it to show up.

Is there an easier way to do this? Thanks in advance…

Image Attachments
example.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
magemods
Jr. Member
 
Avatar
Total Posts:  30
Joined:  2011-04-10
 

Assuming that your static block identifier is “callout”, this code is valid

<reference name="top.container">
<
block type="cms/block" name="callout"><action method="setBlockId"><block_id>callout</block_id></action></block>
</
reference>
for “Layout Update XML” field in page editor.

 Signature 

Sincerely,
MageMods Sales
http://www.magemods.co/

 
Magento Community Magento Community
Magento Community
Magento Community
 
ryan777
Jr. Member
 
Total Posts:  30
Joined:  2011-02-21
 

Thanks for replying Magemods,

So is the tutorial I\’ve been looking at accurate? I just can\’t seem to get this to to work...I\’ve created a phtml file called slides within template/page/html/ and I\’ve added the following to page.xml:

<block type=\"core/text_list\" name=\"top\" as=\"top\" translate=\"label\">
<label>Top Row</label>
</block>

Added the following to the homepage CMS layout update XML:

<reference name=\"top\">
<block type=\"core/template\" name=\"top.callout\" template=\"page/html/slides.phtml\" />
</reference>

and I\’ve added this to 2columns-left.phtml:

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

If anyone has any suggestions that\’d be great!

 
Magento Community Magento Community
Magento Community
Magento Community
 
SarathTomy
Sr. Member
 
Avatar
Total Posts:  146
Joined:  2009-03-13
Melbourne, Australia
 

I suggested you to create a new custom layout template for the home page.

 Signature 

Thanks and regards
Sarath Tomy
Melbourne, VIC

E-Mail :
Skype : sarathtomy
Mobile : +(61)-470105190
Follow me on Twitter @maanikunju

 
Magento Community Magento Community
Magento Community
Magento Community
 
ryan777
Jr. Member
 
Total Posts:  30
Joined:  2011-02-21
 

sarathtomy,

Thank you! Got it to work by following this tutorial. Thanks for your suggestion!

 
Magento Community Magento Community
Magento Community
Magento Community
 
dmind
Newbie
 
Total Posts:  0
Joined:  2013-02-27
 

thanks! it works.

--------------------------------
Michael
http://www.d-mind.de

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top