/** * Display a wildcard in the back end * * @return string */ public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: PRODUCT FILTERS ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id; return $objTemplate->parse(); } $this->generateAjax(); // Initialize module data. if (!$this->initializeFilters()) { return ''; } // Hide product list in reader mode if the respective setting is enabled if ($this->iso_hide_list && Input::getAutoItem('product', false, true) != '') { return ''; } $strBuffer = parent::generate(); // Cache request in the database and redirect to the unique requestcache ID if ($this->blnUpdateCache) { $objCache = Isotope::getRequestCache()->saveNewConfiguration(); // Include \Environment::base or the URL would not work on the index page \Controller::redirect(\Environment::get('base') . Url::addQueryString('isorc=' . $objCache->id, $this->jumpTo ?: null)); } return $strBuffer; }
/** * Display a wildcard in the back end * * @return string */ public function generate() { if (TL_MODE == 'BE') { /** @var \BackendTemplate|object $objTemplate */ $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: CUMULATIVE FILTER ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id; return $objTemplate->parse(); } // Hide product list in reader mode if the respective setting is enabled if ($this->iso_hide_list && Input::getAutoItem('product', false, true) != '') { return ''; } if (empty($this->iso_cumulativeFields)) { return ''; } return parent::generate(); }