/** * Method to get the field input markup. Use as name the view of the desired layout list + "layout". * For example <field name="categorylayout" for all layouts of hte category view. * * @author Max Milbers * @return string The field input markup. * @since 2.0.24a */ function getInput() { VmConfig::loadJLang('com_virtuemart'); $view = substr($this->fieldname, 0, -6); $model = vmModel::getModel('config'); $vmLayoutList = $model->getFieldList('products'); $html = JHtml::_('Select.genericlist', $vmLayoutList, $this->name, 'size=1 width=200', 'value', 'text', array($this->value)); return $html; }
function vmModel($model = null) { if (!class_exists('VmModel')) { require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'vmmodel.php'; } return vmModel::getModel($model); }