Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

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.
 
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.

 
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