diff --git a/src/Extension/ProductFileCollectionDataExtension.php b/src/Extension/ProductFileCollectionDataExtension.php index 1d692fd..e681730 100644 --- a/src/Extension/ProductFileCollectionDataExtension.php +++ b/src/Extension/ProductFileCollectionDataExtension.php @@ -28,15 +28,15 @@ public function updateCollectionForm(&$form) $fields = $form->Fields(); $fields->insertAfter( + 'Title', DropdownField::create('CategoryID', 'Category', ProductCategory::get()->map()) - ->setEmptyString('All categories'), - 'Title' + ->setEmptyString('All categories') ); $fields->insertAfter( + 'CategoryID', DropdownField::create('Products__ID', 'Product', Product::get()->map()) - ->setEmptyString('All products'), - 'CategoryID' + ->setEmptyString('All products') ); $fields->removeByName([ diff --git a/src/Model/ProductFile.php b/src/Model/ProductFile.php index 44753d1..3a2e9c3 100644 --- a/src/Model/ProductFile.php +++ b/src/Model/ProductFile.php @@ -85,12 +85,12 @@ public function getCMSFields() ); $fields->insertBefore( + 'Content', UploadField::create('Image') ->setAllowedMaxFileNumber(1) ->setFolderName('Uploads/ProductDocs/Images') ->setAllowedFileCategories('image') - ->setDescription('Optional preview image of file'), - 'Content' + ->setDescription('Optional preview image of file') ); return $fields;