$pageList->sqlConditionJoins = 'LEFT JOIN wcf'. WCF_N .'_page page ON (page_content.pageID = page.pageID)';
$pageList->sqlJoins = 'LEFT JOIN wcf'. WCF_N .'_page page ON (page_content.pageID = page.pageID)';
$pageList->getConditionBuilder()->add('page.isMultilingual = ?', [1]);
+ $pageList->getConditionBuilder()->add('page.allowSpidersToIndex = ?', [1]);
return $pageList;
}
* @inheritDoc
*/
public function getObjectList() {
- /** @var $classList PageList */
- $classList = parent::getObjectList();
- $classList->getConditionBuilder()->add('isMultilingual = ?', [0]);
+ /** @var $pageList PageList */
+ $pageList = parent::getObjectList();
+ $pageList->getConditionBuilder()->add('isMultilingual = ?', [0]);
+ $pageList->getConditionBuilder()->add('page.allowSpidersToIndex = ?', [1]);
- return $classList;
+ return $pageList;
}
/**