public function generate() { $this->strTemplate = 'modallink_' . $this->objConfig->type; if (is_array($this->objConfig->link['attributes'])) { $this->setLinkAttributes($this->objConfig->link['attributes']); } return parent::generate(); }