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

Connecting static blocks to different categories
 
Volzy
Jr. Member
 
Total Posts:  9
Joined:  2007-12-21
Frederiksberg C, Denmark
 

I need a box in my left column of my webshop, where I can put information about a category. A bit like a static block as a landing page, but it should be displayed in the left column. Like this:

http://www.volzy.dk/magento.jpg

Anybody who can help a newbie?  smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jonathan Hedrén
Member
 
Total Posts:  67
Joined:  2007-08-31
Sweden
 

I would take a look at the function _prepareLayout() in app/code/core/Mage/Catalog/Block/Category/View.php. A wild guess is that you have to get inspired by

if ($layout $this->getCurrentCategory()->getPageLayout()) {
            $template 
= (string)Mage::getConfig()->getNode('global/cms/layouts/'.$layout.'/template');
            
$this->getLayout()->getBlock('root')->setTemplate($template);
        
}
and of course look at <catalog_category_default> contents in app/design/frontend/default/default/layout/main.xml
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top