View Single Post
  #8  
Old 10-22-2014, 03:26 AM
 
JannieB JannieB is offline
 

Senior Member
  
Join Date: Sep 2004
Posts: 117
 

Default Re: Wordpress in XC5 -- wordpress home page as site home page?

Having given up on the rewrite rules, I am trying a different tack ...
... trying to include "main" as an Allowed target for the blog class, in the hop of adding the wordpress module to the home page ...
so far I have added this class in my custom module:

Code:
class WordPress extends XLite\Module\QSL\WordPress\View\WordPress implements \XLite\Base\IDecorator { /** * Return list of allowed targets * * @return array */ public static function getAllowedTargets() { return array_merge(parent::getAllowedTargets(), array('main')); } protected function isVisible() { return (\XLite::getController()->getTarget() == 'main' && \XLite\Core\Config::getInstance()->QSL->WordPress->section_style == 'content section') ? true : false; } }

But no joy ..... surely there must be a away to do this?

Can anyone help?

Jan
__________________
Jan Beesley
(Currently Xcart 5
Previously XCart Gold from 3.5....)
Reply With Quote