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

Custom Module Get Default Background Image
 
simoninman
Jr. Member
 
Avatar
Total Posts:  18
Joined:  2013-03-25
 

Hi can anyone please help

I have made a custom module and want this module to utilize the same background image that is used on the CMS pages

Thank you for any help

Kind regards
Simon

 
Magento Community Magento Community
Magento Community
Magento Community
 
simoninman
Jr. Member
 
Avatar
Total Posts:  18
Joined:  2013-03-25
 

I have this currently in my block/data.php

public function _prepareLayout()
    
{

        $this
->getLayout()->getBlock('breadcrumbs')
            ->
addCrumb('home',
                array(
'label'=>Mage::helper('catalogsearch')->__('Home'),
                    
'title'=>Mage::helper('catalogsearch')->__('Go to Home Page'),
                    
'link'=>Mage::getBaseUrl())
            )
            ->
addCrumb('customer',
                array(
'label'=>Mage::helper('customer')->__('Competition'))
            );

        return 
parent::_prepareLayout();
    
}

and this in my indexController

$this->loadLayout(array('default'));

        
$this->renderLayout();
 
Magento Community Magento Community
Magento Community
Magento Community
 
simoninman
Jr. Member
 
Avatar
Total Posts:  18
Joined:  2013-03-25
 

Apologies I Have fixed my issue

I was using the wrong template.phtml file in my layout. the one I had assigned did not actually have a background

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