public function generate()
    {
        if (TL_MODE === 'BE') {
            return parent::generate();
        }

        // Generate the list in related categories mode
        if ($this->news_relatedCategories) {
            return $this->generateRelated();
        }

        return parent::generate();
    }
public function generate()
    {
        if (TL_MODE === 'BE') {
            return parent::generate();
        }

        // Generate the list in related categories mode
        if ($this->news_relatedCategories) {
            return $this->generateRelated();
        }

        return parent::generate();
    }
public function generate ( ) { if ( TL_MODE === 'BE' ) { return parent :: generate ( ) ; } // Generate the list in related categories mode if ( $ this -> news_relatedCategories ) { return $ this -> generateRelated ( ) ; } return parent :: generate ( ) ; }
Set the flag to filter news by categories

@return string
Set the flag to filter news by categories