/** * Generate the module */ protected function compile() { global $objPage; $this->Template->albums = ''; $this->Template->referer = 'javascript:history.go(-1)'; $this->Template->back = $GLOBALS['TL_LANG']['MSC']['goBack']; $objAlbum = \PhotogalleryAlbumModel::findPublishedByParentAndIdOrAlias(\Input::get('items'), $this->photogalleries); // Overwrite the page title if ($objAlbum->title != '') { $objPage->pageTitle = strip_tags(strip_insert_tags($objAlbum->title)); } // Overwrite the page description if ($objProduct->description != '') { $objPage->description = $this->prepareMetaDescription($objAlbum->description); } $arrAlbum = $this->parseAlbumFull($objAlbum); $this->Template->albums = $arrAlbum; }