view = (string) $this->element['view']; if(empty($this->view)){ $view = substr($this->fieldname,0,-6);; } else { $view = $this->view; } $vmLayoutList = VirtueMartModelConfig::getLayoutList($view); $html = vHtml::_('Select.genericlist',$vmLayoutList, $this->name, 'size=1 width=200', 'value', 'text', array($this->value)); return $html; } }