/** * Remove name attributes in the back end so the form is not validated * @return string */ public function generate() { $str = parent::generate(); if (TL_MODE == 'BE') { $str = preg_replace('/name="[^"]+" ?/i', '', $str); } return $str; }
/** * Remove name attributes in the back end so the form is not validated * @return string */ public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ' . utf8_strtoupper($GLOBALS['TL_LANG']['CTE']['form'][0]) . ' ###'; $objTemplate->id = $this->id; $objTemplate->link = $this->title; $objTemplate->href = 'contao/main.php?do=form&table=tl_form_field&id=' . $this->id; return $objTemplate->parse(); } return parent::generate(); }
public function generate() { return Hybrid::generate(); }
/** * Generate the list. * * @return string */ public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = $this->wildCardName; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = sprintf($this->wildCardLink, $this->id); return $objTemplate->parse(); } return parent::generate(); }