Hi !
I'm developing a module for oxid CE 4.8.7 and I'm trying to find out a way I could know which articles are being displayed on the website.
So I extended the oxViewConfig class, and thought of using the getArticleList function after I retrieved the view (with getActiveView()).
So I have this :
However when I do this, $oArticleList has a null value and no article is displayed :confused:. Does someone know why ? Is there another way I could retrieve the articles ?
Thanks !
I'm developing a module for oxid CE 4.8.7 and I'm trying to find out a way I could know which articles are being displayed on the website.
So I extended the oxViewConfig class, and thought of using the getArticleList function after I retrieved the view (with getActiveView()).
So I have this :
PHP Code:
class oxMyViewConfig extends oxMyViewConfig_parent
{
public function setViewConfigParam( $sName, $sValue )
{
parent::setViewConfigParam($sName, $sValue);
$oView = $this->getConfig()->getActiveView()
$sProducts = $this->_getDisplayedProducts($oView);
}
protected function _getDisplayedProducts($oView)
{
$oArticleList = $oView->getArticleList();
}
}
Thanks !