Magento Forum

   
Custom Module Get Default Background Image
 
simoninman
Jr. Member
 
Avatar
Total Posts:  15
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:  15
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:  15
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