View Single Post
  #9  
Old 03-07-2014, 06:26 AM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: XC5 Homepage layout

Quote:
Originally Posted by tony_sologubov

As for CSS rules for the home page only, you can alter the classes/XLite/Module/Tony/HomePageWithoutSidebar/View/Content.php viewer and define there the following method:

public function getJSFiles()
{
$result = parent::getJSFiles();

if ('main' == $this->getTarget()) {
$result[] = 'modules/Tony/HomePageWithoutSidebar/css/css.css';
}

return $result;
}


I could not get it to work after updating the cahce the css did not appear in the homepage, do you have the full Content.php file please.
__________________
Richard


Ultimate 5.4 testing
Reply With Quote