Quantcast
Channel: OXID Community Forum
Viewing all articles
Browse latest Browse all 6951

get article displayed

$
0
0
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 :

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();

        }



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 !

Viewing all articles
Browse latest Browse all 6951

Trending Articles