/** * Returns the input fields for this widget. * * @param Widget $widget Widget to initialize * @param array $fetchMethods Optional list of product fetch methods * * @return FieldList * * @author Sebastian Diel <*****@*****.**> * @since 13.03.2014 */ public static function getCMSFieldsForProductSliderWidget(Widget $widget, $fetchMethods = array()) { if (empty($fetchMethods)) { $fetchMethods = array('random' => $widget->fieldLabel('fetchMethodRandom'), 'sortOrderAsc' => $widget->fieldLabel('fetchMethodSortOrderAsc'), 'sortOrderDesc' => $widget->fieldLabel('fetchMethodSortOrderDesc')); } $fields = SilvercartDataObject::getCMSFields($widget, 'ExtraCssClasses', false); $productGroupDropdown = new TreeDropdownField('SilvercartProductGroupPageID', $widget->fieldLabel('SilvercartProductGroupPage'), 'SiteTree'); $productGroupDropdown->setTreeBaseID(SilvercartTools::PageByIdentifierCode('SilvercartProductGroupHolder')->ID); $toggleFields = array($fields->dataFieldByName('numberOfProductsToShow'), $fields->dataFieldByName('numberOfProductsToFetch'), $fields->dataFieldByName('fetchMethod'), SilvercartGroupViewHandler::getGroupViewDropdownField('GroupView', $widget->fieldLabel('GroupView'), $widget->GroupView)); $fields->dataFieldByName('fetchMethod')->setSource($fetchMethods); $fields->dataFieldByName('numberOfProductsToShow')->setDescription($widget->fieldLabel('numberOfProductsToShowInfo')); $fields->dataFieldByName('isContentView')->setDescription($widget->fieldLabel('isContentViewInfo')); if (is_object($fields->dataFieldByName('useSelectionMethod'))) { $fields->dataFieldByName('useSelectionMethod')->setSource(array('productGroup' => $widget->fieldLabel('SelectionMethodProductGroup'), 'products' => $widget->fieldLabel('SelectionMethodProducts'))); $toggleFields[] = $fields->dataFieldByName('useSelectionMethod'); $productGroupDropdown->setDescription($widget->fieldLabel('SilvercartProductGroupPageDescription')); } $toggleFields[] = $productGroupDropdown; $productDataToggle = ToggleCompositeField::create('ProductDataToggle', $widget->fieldLabel('ProductDataToggle'), $toggleFields)->setHeadingLevel(4); $productRelationToggle = ToggleCompositeField::create('ProductRelationToggle', $widget->fieldLabel('ProductRelationToggle'), array($fields->dataFieldByName('SilvercartProducts')))->setHeadingLevel(4); $fields->removeByName('numberOfProductsToShow'); $fields->removeByName('numberOfProductsToFetch'); $fields->removeByName('fetchMethod'); $fields->removeByName('useSelectionMethod'); $fields->removeByName('SilvercartProducts'); $fields->addFieldToTab("Root.Main", $productDataToggle); $fields->addFieldToTab("Root.Main", $productRelationToggle); $widget->getCMSFieldsSliderTab($fields); //$widget->getCMSFieldsRoundaboutTab($fields); return $fields; }
/** * customizes the backends fields, mainly for ModelAdmin * * @return FieldList the fields for the backend * * @author Roland Lehmann <*****@*****.**>, Sebastian Diel <*****@*****.**> * @since 13.02.2013 */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this); if ($this->isInDB()) { $useAllCountries = new CheckboxField('UseAllCountries', $this->fieldLabel('UseAllCountries')); $fields->addFieldToTab('Root.Main', $useAllCountries); } return $fields; }
/** * Returns the input fields for this widget. * * @return FieldList * * @author Sebastian Diel <*****@*****.**> * @since 27.03.2012 */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this, 'ExtraCssClasses', false); $fetchMethods = array('random' => $this->fieldLabel('fetchMethodRandom'), 'sortOrderAsc' => $this->fieldLabel('fetchMethodSortOrderAsc'), 'sortOrderDesc' => $this->fieldLabel('fetchMethodSortOrderDesc')); $fetchMethodsField = $fields->dataFieldByName('fetchMethod'); $fetchMethodsField->setSource($fetchMethods); $fields->replaceField('GroupView', SilvercartGroupViewHandler::getGroupViewDropdownField('GroupView', $this->fieldLabel('GroupView'))); // Temporary disabled slider functions. //SilvercartWidgetTools::getCMSFieldsSliderTabForProductSliderWidget($this, $fields); $fields->removeByName('numberOfProductsToShow'); return $fields; }
/** * Returns the input fields for this widget. * * @return FieldList * * @author Sebastian Diel <*****@*****.**> * @since 23.02.2016 */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this, 'ExtraCssClasses', false); $slideImagesTable = new GridField('slideImages', $this->fieldLabel('slideImages'), $this->slideImages(), SilvercartGridFieldConfig_RelationEditor::create()); $slideImagesTable->getConfig()->removeComponentsByType('GridFieldAddNewButton'); $slideImagesTable->getConfig()->removeComponentsByType('GridFieldAddExistingAutocompleter'); $slideImagesTable->getConfig()->addComponent(new GridFieldDeleteAction()); $slideImagesUploadField = new SilvercartImageUploadField('UploadslideImages', $this->fieldLabel('AddImage')); $slideImagesUploadField->setFolderName('Uploads/slider-images'); $slideImagesUploadField->setRelationClassName('SilvercartImageSliderImage'); $fields->findOrMakeTab('Root.slideImages', $this->fieldLabel('slideImages')); $fields->addFieldToTab('Root.slideImages', $slideImagesUploadField); $fields->addFieldToTab('Root.slideImages', $slideImagesTable); $this->getCMSFieldsSliderTab($fields); return $fields; }
/** * customizes the backends fields, mainly for ModelAdmin * * @return FieldList the fields for the backend */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this); $salutationArray = array('' => _t('SilvercartEditAddressForm.EMPTYSTRING_PLEASECHOOSE'), 'Herr' => _t('SilvercartAddress.MISTER'), 'Frau' => _t('SilvercartAddress.MISSES')); $salutationDropdown = new DropdownField('Salutation', $this->fieldLabel('Salutation'), $salutationArray); $fields->insertBefore($salutationDropdown, 'FirstName'); return $fields; }
/** * Returns the input fields for this widget. * * @return FieldList */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this); $fields->removeByName('SilvercartTextWidgetLanguages'); return $fields; }
/** * customizes the backends fields, mainly for ModelAdmin * * @return FieldList the fields for the backend * * @author Roland Lehmann <*****@*****.**>, Sebastian Diel <*****@*****.**> * @since 20.06.2012 */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this); $fields->insertAfter(new LiteralField('ExplanationToDecimalPlaces', '<p class="silvercart-formfield-label"><i>' . _t('SilvercartQuantityUnit.EXPLANATION_TO_DECIMAL_PLACES') . '</i></p>'), 'numberOfDecimalPlaces'); return $fields; }
/** * GUI fields * * @return FieldList * * @author Sascha Koehler <*****@*****.**> * @since 06.12.2012 */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this, 'ExtraCssClasses', false); $pagesField = new TreeMultiselectField('Pages', $this->fieldLabel('Pages'), 'SilvercartPage', 'ID', 'Title'); $fields->insertAfter($pagesField, 'FrontContent'); return $fields; }
/** * customizes the backends fields, mainly for ModelAdmin * * @return FieldList the fields for the backend * * @author Roland Lehmann <*****@*****.**>, Sebastian Diel <*****@*****.**> * @since 13.02.2013 */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this); $paymentMethodsTable = $fields->dataFieldByName('SilvercartPaymentMethods'); $paymentMethodsTable->setConfig(SilvercartGridFieldConfig_RelationEditor::create()); $languageFields = SilvercartLanguageHelper::prepareCMSFields($this->getLanguageClassName()); foreach ($languageFields as $languageField) { $fields->insertBefore($languageField, 'ISO2'); } $displayPositionMap = array('0' => _t('SilvercartOrderSearchForm.PLEASECHOOSE')); for ($x = 1; $x <= self::getPrioritiveCountryCount(false) + 1; $x++) { $displayPositionMap[$x] = $x; } $displayPositionField = new DropdownField('DisplayPosition', $this->fieldLabel('DisplayPosition'), $displayPositionMap); $fields->insertAfter($displayPositionField, 'IsPrioritive'); return $fields; }
/** * Returns the input fields for this widget. * * @return FieldList */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this, 'ExtraCssClasses', false); $siteTreeField = new TreeDropdownField('SiteTreeID', $this->fieldLabel('Linkpage'), 'SiteTree', 'ID', 'Title', false); $productNumberToReferenceField = new TextField('ProductNumberToReference', $this->fieldLabel('ProductNumberToReference')); $productNumberToReferenceField->setDescription($this->fieldLabel('ProductNumberToReferenceInfo')); $fields->addFieldToTab('Root.Main', $siteTreeField, 'Title'); $fields->addFieldToTab('Root.Main', $productNumberToReferenceField, 'SiteTreeID'); $fields->removeByName('SilvercartImageSliderWidgets'); return $fields; }
/** * Customize scaffolding fields for the backend * * @return FieldList */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this); if ($this->exists()) { $fields->makeFieldReadonly('Price'); $fields->makeFieldReadonly('PriceTotal'); $fields->makeFieldReadonly('Tax'); $fields->makeFieldReadonly('TaxTotal'); $fields->makeFieldReadonly('TaxRate'); $fields->makeFieldReadonly('Quantity'); $fields->makeFieldReadonly('ProductDescription'); $fields->makeFieldReadonly('Title'); $fields->makeFieldReadonly('ProductNumber'); $fields->makeFieldReadonly('isChargeOrDiscount'); $fields->makeFieldReadonly('chargeOrDiscountModificationImpact'); $fields->makeFieldReadonly('SilvercartOrderID'); $fields->makeFieldReadonly('SilvercartProductID'); $fields->removeByName('isIncludedInTotal'); $fields->removeByName('numberOfDecimalPlaces'); $fields->removeByName('IsNonTaxable'); } return $fields; }
/** * customize backend fields * * @return FieldList the form fields for the backend * * @author Roland Lehmann <*****@*****.**>, Sebastian Diel <sdiel@πixeltricks.de> * @since 28.01.2013 */ public function getCMSFields() { $this->markAsSeen(); $fields = SilvercartDataObject::getCMSFields($this); //add the shipping/invloice address fields as own tab $address = singleton('SilvercartAddress'); $fields->findOrMakeTab('Root.ShippingAddressTab', $this->fieldLabel('ShippingAddressTab')); $fields->findOrMakeTab('Root.InvoiceAddressTab', $this->fieldLabel('InvoiceAddressTab')); $fields->addFieldToTab('Root.ShippingAddressTab', new LiteralField('sa__Preview', '<p>' . Convert::raw2xml($this->getShippingAddressSummary(true)) . '</p>')); $fields->addFieldToTab('Root.ShippingAddressTab', new TextField('sa__TaxIdNumber', $address->fieldLabel('TaxIdNumber'), $this->SilvercartShippingAddress()->TaxIdNumber)); $fields->addFieldToTab('Root.ShippingAddressTab', new TextField('sa__Company', $address->fieldLabel('Company'), $this->SilvercartShippingAddress()->Company)); $fields->addFieldToTab('Root.ShippingAddressTab', new TextField('sa__FirstName', $address->fieldLabel('FirstName'), $this->SilvercartShippingAddress()->FirstName)); $fields->addFieldToTab('Root.ShippingAddressTab', new TextField('sa__Surname', $address->fieldLabel('Surname'), $this->SilvercartShippingAddress()->Surname)); $fields->addFieldToTab('Root.ShippingAddressTab', new TextField('sa__Addition', $address->fieldLabel('Addition'), $this->SilvercartShippingAddress()->Addition)); $fields->addFieldToTab('Root.ShippingAddressTab', new TextField('sa__Street', $address->fieldLabel('Street'), $this->SilvercartShippingAddress()->Street)); $fields->addFieldToTab('Root.ShippingAddressTab', new TextField('sa__StreetNumber', $address->fieldLabel('StreetNumber'), $this->SilvercartShippingAddress()->StreetNumber)); $fields->addFieldToTab('Root.ShippingAddressTab', new CheckboxField('sa__IsPackstation', $address->fieldLabel('IsPackstation'), $this->SilvercartShippingAddress()->IsPackstation)); $fields->addFieldToTab('Root.ShippingAddressTab', new TextField('sa__PostNumber', $address->fieldLabel('PostNumber'), $this->SilvercartShippingAddress()->PostNumber)); $fields->addFieldToTab('Root.ShippingAddressTab', new TextField('sa__Packstation', $address->fieldLabel('PackstationPlain'), $this->SilvercartShippingAddress()->Packstation)); $fields->addFieldToTab('Root.ShippingAddressTab', new TextField('sa__Postcode', $address->fieldLabel('Postcode'), $this->SilvercartShippingAddress()->Postcode)); $fields->addFieldToTab('Root.ShippingAddressTab', new TextField('sa__City', $address->fieldLabel('City'), $this->SilvercartShippingAddress()->City)); $fields->addFieldToTab('Root.ShippingAddressTab', new DropdownField('sa__Country', $address->fieldLabel('Country'), SilvercartCountry::get_active()->map()->toArray(), $this->SilvercartShippingAddress()->SilvercartCountry()->ID)); $fields->addFieldToTab('Root.ShippingAddressTab', new TextField('sa__PhoneAreaCode', $address->fieldLabel('PhoneAreaCode'), $this->SilvercartShippingAddress()->PhoneAreaCode)); $fields->addFieldToTab('Root.ShippingAddressTab', new TextField('sa__Phone', $address->fieldLabel('Phone'), $this->SilvercartShippingAddress()->Phone)); $fields->addFieldToTab('Root.InvoiceAddressTab', new LiteralField('ia__Preview', '<p>' . Convert::raw2xml($this->getInvoiceAddressSummary(true)) . '</p>')); $fields->addFieldToTab('Root.InvoiceAddressTab', new TextField('ia__TaxIdNumber', $address->fieldLabel('TaxIdNumber'), $this->SilvercartInvoiceAddress()->TaxIdNumber)); $fields->addFieldToTab('Root.InvoiceAddressTab', new TextField('ia__Company', $address->fieldLabel('Company'), $this->SilvercartInvoiceAddress()->Company)); $fields->addFieldToTab('Root.InvoiceAddressTab', new TextField('ia__FirstName', $address->fieldLabel('FirstName'), $this->SilvercartInvoiceAddress()->FirstName)); $fields->addFieldToTab('Root.InvoiceAddressTab', new TextField('ia__Surname', $address->fieldLabel('Surname'), $this->SilvercartInvoiceAddress()->Surname)); $fields->addFieldToTab('Root.InvoiceAddressTab', new TextField('ia__Addition', $address->fieldLabel('Addition'), $this->SilvercartInvoiceAddress()->Addition)); $fields->addFieldToTab('Root.InvoiceAddressTab', new TextField('ia__Street', $address->fieldLabel('Street'), $this->SilvercartInvoiceAddress()->Street)); $fields->addFieldToTab('Root.InvoiceAddressTab', new TextField('ia__StreetNumber', $address->fieldLabel('StreetNumber'), $this->SilvercartInvoiceAddress()->StreetNumber)); $fields->addFieldToTab('Root.InvoiceAddressTab', new CheckboxField('ia__IsPackstation', $address->fieldLabel('IsPackstation'), $this->SilvercartInvoiceAddress()->IsPackstation)); $fields->addFieldToTab('Root.InvoiceAddressTab', new TextField('ia__PostNumber', $address->fieldLabel('PostNumber'), $this->SilvercartInvoiceAddress()->PostNumber)); $fields->addFieldToTab('Root.InvoiceAddressTab', new TextField('ia__Packstation', $address->fieldLabel('PackstationPlain'), $this->SilvercartInvoiceAddress()->Packstation)); $fields->addFieldToTab('Root.InvoiceAddressTab', new TextField('ia__Postcode', $address->fieldLabel('Postcode'), $this->SilvercartInvoiceAddress()->Postcode)); $fields->addFieldToTab('Root.InvoiceAddressTab', new TextField('ia__City', $address->fieldLabel('City'), $this->SilvercartInvoiceAddress()->City)); $fields->addFieldToTab('Root.InvoiceAddressTab', new DropdownField('ia__Country', $address->fieldLabel('Country'), SilvercartCountry::get_active()->map()->toArray(), $this->SilvercartInvoiceAddress()->SilvercartCountry()->ID)); $fields->addFieldToTab('Root.InvoiceAddressTab', new TextField('ia__PhoneAreaCode', $address->fieldLabel('PhoneAreaCode'), $this->SilvercartInvoiceAddress()->PhoneAreaCode)); $fields->addFieldToTab('Root.InvoiceAddressTab', new TextField('ia__Phone', $address->fieldLabel('Phone'), $this->SilvercartInvoiceAddress()->Phone)); //add print preview $fields->findOrMakeTab('Root.PrintPreviewTab', $this->fieldLabel('PrintPreview')); $printPreviewField = new LiteralField('PrintPreviewField', sprintf('<iframe width="100%%" height="100%%" border="0" src="%s" class="print-preview"></iframe>', SilvercartPrint::getPrintInlineURL($this))); $fields->addFieldToTab('Root.PrintPreviewTab', $printPreviewField); return $fields; }
/** * remove attribute Code from the CMS fields * * @return FieldList all CMS fields related * * @author Roland Lehmann <*****@*****.**>, Sebastian Diel <*****@*****.**> * @since 12.07.2012 */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this); // Add shop email field $shopEmailLabelField = new LiteralField('ShopEmailLabelField', sprintf("<br /><p>%s</p>", $this->fieldLabel('ShopEmailLabelField'))); $fields->addFieldToTab('Root.SilvercartShopEmails', $shopEmailLabelField, 'SilvercartShopEmails'); $this->extend('updateCMSFields', $fields); return $fields; }
/** * customizes the backends fields, mainly for ModelAdmin * * @return FieldList the fields for the backend */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this); $fields->removeByName('SilvercartProductID'); $fields->removeByName('SilvercartPaymentMethodID'); $controller = Controller::curr(); if ($controller instanceof SilvercartProductAdmin || $controller instanceof SilvercartPaymentMethodAdmin) { $fields->removeByName('Content'); $fields->removeByName('Description'); } $fields->removeByName('SilvercartSlidorionProductGroupWidgets'); $fields->addFieldToTab('Root.Main', new TextField('ProductNumberToReference', $this->fieldLabel('ProductNumberToReference'))); return $fields; }
/** * customizes the backends fields, mainly for ModelAdmin * * @return FieldList the fields for the backend * @author Roland Lehmann <*****@*****.**> * @since 28.10.10 */ public function getCMSFields() { $this->getCMSFieldsIsCalled = true; $fields = SilvercartDataObject::getCMSFields($this); return $fields; }
/** * Replaces the SilvercartProductGroupID DropDownField with a GroupedDropDownField. * * @return FieldList */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this, 'URL', true); $fields->removeByName('URLSegment'); return $fields; }
/** * customizes the backends fields, mainly for ModelAdmin * * @return FieldList the fields for the backend * * @author Roland Lehmann <*****@*****.**>, * Sebastian Diel <*****@*****.**> * @since 11.06.2014 */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this, 'SilvercartCarrierID', false); $fields->dataFieldByName('DeliveryTimeMin')->setDescription($this->fieldLabel('DeliveryTimeMinDesc')); $fields->dataFieldByName('DeliveryTimeMax')->setDescription($this->fieldLabel('DeliveryTimeMaxDesc')); $fields->dataFieldByName('DeliveryTimeText')->setDescription($this->fieldLabel('DeliveryTimeTextDesc')); if ($this->isInDB()) { $feeTable = $fields->dataFieldByName('SilvercartShippingFees'); $feesTableConfig = $feeTable->getConfig(); $exportButton = new GridFieldExportButton(); $exportColumsArray = array('ID', 'MaximumWeight', 'UnlimitedWeight', 'PriceAmount', 'PriceCurrency', 'SilvercartZoneID', 'SilvercartShippingMethodID', 'SilvercartTaxID'); $exportButton->setExportColumns($exportColumsArray); $feesTableConfig->addComponent($exportButton); $feesTableConfig->removeComponentsByType('SilvercartGridFieldAddExistingAutocompleter'); $feesTableConfig->removeComponentsByType('GridFieldDeleteAction'); $feesTableConfig->addComponent(new GridFieldDeleteAction()); if (class_exists('GridFieldSortableRows')) { $feesTableConfig->addComponent(new GridFieldSortableRows('priority')); } } return $fields; }
/** * used to override the WidgetSet::getCMSFields to use the * SilverCarts scaffholding with excluded attributes and relations * * @return array * * @author Patrick Schneider <*****@*****.**> * @since 20.02.2013 */ public function overrideGetCMSFields() { $fields = SilvercartDataObject::getCMSFields($this->owner); $fields->addFieldsToTab('Root.Main', $this->owner->scaffoldWidgetAreaFields()); return $fields; }
/** * Returns the input fields for this widget. * * @return FieldList CMS fields */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this, 'ExtraCssClasses', false); $source = array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7'); $startAtLevel = new DropdownField('startAtLevel', $this->fieldLabel('startAtLevel'), $source, $this->startAtLevel); $fields->insertAfter($startAtLevel, 'Title'); return $fields; }
/** * CMS fields for this object * * @param array $params Scaffolding parameters * * @return FieldList */ public function getCMSFields($params = null) { $fields = SilvercartDataObject::getCMSFields($this); if ($fields->dataFieldByName('SilvercartCountryID')) { $countryDropdown = new DropdownField('SilvercartCountryID', $this->fieldLabel('Country'), SilvercartCountry::getPrioritiveDropdownMap()); $fields->replaceField('SilvercartCountryID', $countryDropdown); } return $fields; }
/** * customizes the backends fields, mainly for ModelAdmin * * @return FieldList the fields for the backend * * @author Roland Lehmann <*****@*****.**>, * Sebastian Diel <*****@*****.**> * @since 11.06.2014 */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this, 'Code', false); $badgeColorSource = array('default' => '<span style="padding: 4px 8px; color: #fff; background-color:#999999">' . $this->Title . '</span>', 'success' => '<span style="padding: 4px 8px; color: #fff; background-color:#468847">' . $this->Title . '</span>', 'warning' => '<span style="padding: 4px 8px; color: #fff; background-color:#f89406">' . $this->Title . '</span>', 'important' => '<span style="padding: 4px 8px; color: #fff; background-color:#b94a48">' . $this->Title . '</span>', 'info' => '<span style="padding: 4px 8px; color: #fff; background-color:#3a87ad">' . $this->Title . '</span>', 'inverse' => '<span style="padding: 4px 8px; color: #fff; background-color:#333333">' . $this->Title . '</span>'); $fields->removeByName('badgeColor'); $fields->addFieldToTab('Root.Main', new OptionsetField('badgeColor', $this->fieldLabel('badgeColor'), $badgeColorSource)); return $fields; }
/** * Returns the input fields for this widget. * * @return FieldList */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this); $levels = array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '0' => $this->fieldLabel('ShowAllLevels')); $levelsToShow = new DropdownField('levelsToShow', $this->fieldLabel('levelsToShow'), $levels); $fields->insertBefore($levelsToShow, 'ExtraCssClasses'); $productGroupField = new GroupedDropdownField('SilvercartProductGroupPageID', $this->fieldLabel('SilvercartProductGroupPageID'), SilvercartProductGroupHolder_Controller::getAllProductGroupsWithChildrenAsArray(), $this->SilvercartProductGroupPageID); $fields->insertBefore($productGroupField, 'ExtraCssClasses'); return $fields; }
/** * input fields for backend manipulation * * @return FieldList */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this, 'Identifier', true); return $fields; }
/** * Returns the input fields for this widget. * * @return FieldList * * @author Sascha Koehler <*****@*****.**>, Sebastian Diel <*****@*****.**> * @since 20.06.2012 */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this, 'ExtraCssClasses', false); return $fields; }
/** * customizes the backends fields * * @return FieldList * * @author Sebastian Diel <*****@*****.**> * @since 05.04.2011 */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this); if (!empty($this->Identifier)) { $fields->makeFieldReadonly('ActualCount'); } return $fields; }
/** * Returns the input fields for this widget. * * @return FieldList */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this); return $fields; }
/** * customizes the backends fields, mainly for ModelAdmin * * @return FieldList the fields for the backend * * @author Roland Lehmann <*****@*****.**>, Sebastian Diel <*****@*****.**> * @since 26.03.2013 */ public function getCMSFields() { $fields = SilvercartDataObject::getCMSFields($this); $fields->removeByName('SilvercartProductID'); $fields->removeByName('SilvercartDownloadPageID'); return $fields; }