/** * Generate the module */ protected function compile() { parent::compile(); // --- create FE template for javascript caller $objTemplateJs = new \FrontendTemplate($this->strTemplateJs); $objTemplateJs->id = $this->id; $objTemplateJs->cssIDonly = $this->cssID[0]; $objMmenu = new Mmenu(); $objMmenu->createTemplateData($this->Template, $objTemplateJs); }
/** * Generate the module */ protected function compile() { // get content of article $objElements = \ContentModel::findPublishedByPidAndTable($this->dk_mmenuArticle, 'tl_article'); if ($objElements !== null) { while ($objElements->next()) { $arrElements[] = $this->getContentElement($objElements->id); } } $this->Template->elements = $arrElements; // --- create FE template for javascript caller $objTemplateJs = new \FrontendTemplate($this->strTemplateJs); $objTemplateJs->id = $this->id; $objTemplateJs->cssIDonly = $this->cssID[0]; $objMmenu = new Mmenu(); $objMmenu->createTemplateData($this->Template, $objTemplateJs); }