namespace wcf\page;
use wcf\data\article\AccessibleArticleList;
use wcf\system\request\LinkHandler;
+use wcf\system\WCF;
/**
* Shows a list of cms articles.
$this->canonicalURL = LinkHandler::getInstance()->getLink('ArticleList', [], ($this->pageNo > 1 ? 'pageNo=' . $this->pageNo : ''));
}
+
+ /**
+ * @inheritDoc
+ */
+ public function assignVariables() {
+ parent::assignVariables();
+
+ WCF::getTPL()->assign([
+ 'allowSpidersToIndexThisPage' => true
+ ]);
+ }
}
'commentObjectTypeID' => $this->commentObjectTypeID,
'lastCommentTime' => ($this->commentList ? $this->commentList->getMinCommentTime() : 0),
'likeData' => ((MODULE_LIKE && $this->commentList) ? $this->commentList->getLikeData() : []),
- 'articleLikeData' => $this->articleLikeData
+ 'articleLikeData' => $this->articleLikeData,
+ 'allowSpidersToIndexThisPage' => true
]);
}
}
WCF::getTPL()->assign([
'categoryID' => $this->categoryID,
- 'category' => $this->category
+ 'category' => $this->category,
+ 'allowSpidersToIndexThisPage' => true
]);
}
-}
+}
\ No newline at end of file
'contentLanguageID' => $this->languageID,
'page' => $this->page,
'pageID' => $this->pageID,
- 'activePageLanguage' => ($this->languageID ? LanguageFactory::getInstance()->getLanguage($this->languageID) : null)
+ 'activePageLanguage' => ($this->languageID ? LanguageFactory::getInstance()->getLanguage($this->languageID) : null),
+ 'allowSpidersToIndexThisPage' => true
]);
}
}