Quote:
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.
|
Yes, sure. It will look like this:
Code:
<?php
namespace XLite\Module\Tony\HomePageWithoutSidebar\View;
class Content extends \XLite\View\Content implements \XLite\Base\IDecorator
{
protected function isSidebarFirstVisible()
{
if ('main' == $this->getTarget()) {
$return = false;
} else {
$return = parent::isSidebarFirstVisible();
}
return $return;
}
public function getJSFiles()
{
$result = parent::getJSFiles();
if ('main' == $this->getTarget()) {
$result[] = 'modules/Tony/HomePageWithoutSidebar/css/css.css';
}
return $result;
}
}
Please do not forget to add the following CSS file:
skins/default/en/modules/Tony/HomePageWithoutSidebar/css/css.css