We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hej, after uploading through bulkuploader and saving, the dataobject is still in draftmode.. any ideas about that?
//GridField $gridFieldConfig=GridFieldConfig::create() ->addComponent(new GridFieldButtonRow('before')) ->addComponent($dataColumn=new GridFieldDataColumns()) ->addComponent(new GridFieldToolbarHeader()) ->addComponent(new GridFieldTitleHeader("Bild","Titel","Adult")) ->addComponent(new GridFieldDetailForm()) ->addComponent($editableColumns=new GridFieldEditableColumns()) ->addComponent(new GridFieldDeleteAction()) ->addComponent(new GridFieldEditButton()) ->addComponent(new GridFieldOrderableRows('SortID')) ->addComponent($bulkUploader=new \Colymba\BulkUpload\BulkUploader("Image")) ; $editableColumns->setDisplayFields(array( 'Title' => array( 'title' => 'Titel', 'callback' => function($record, $column, $grid) { return TextField::create($column); }) )); $bulkUploader->setAutoPublishDataObject(true);
class CO_Gallery_Image extends DataObject{ private static $table_name="CO_Gallery_Image"; private static $db=[ 'Title'=>'Varchar(255)', 'SortID'=>'Int', 'Adult'=>'Boolean', 'Video'=>'Text', 'Video_Autoplay'=>'Boolean', 'Video_Format'=>'Enum("16-9,4-3","16-9")' //'DeepLinkHash'=>'Boolean' ]; private static $has_one=[ "Image"=>Image::class, "Gallery"=>CO_Gallery::class, 'DeepLink'=>SiteTree::class ]; private static $extensions = [ Versioned::class, ]; private static $owns=[ 'Image' ];
The text was updated successfully, but these errors were encountered:
Would be great if that could be fixed.
Thank you
Sorry, something went wrong.
No branches or pull requests
Hej,
after uploading through bulkuploader and saving, the dataobject is still in draftmode..
any ideas about that?
//GridField
$gridFieldConfig=GridFieldConfig::create()
->addComponent(new GridFieldButtonRow('before'))
->addComponent($dataColumn=new GridFieldDataColumns())
->addComponent(new GridFieldToolbarHeader())
->addComponent(new GridFieldTitleHeader("Bild","Titel","Adult"))
->addComponent(new GridFieldDetailForm())
->addComponent($editableColumns=new GridFieldEditableColumns())
->addComponent(new GridFieldDeleteAction())
->addComponent(new GridFieldEditButton())
->addComponent(new GridFieldOrderableRows('SortID'))
->addComponent($bulkUploader=new \Colymba\BulkUpload\BulkUploader("Image"))
;
$editableColumns->setDisplayFields(array(
'Title' => array(
'title' => 'Titel',
'callback' => function($record, $column, $grid) {
return TextField::create($column);
})
));
$bulkUploader->setAutoPublishDataObject(true);
class CO_Gallery_Image extends DataObject{
private static $table_name="CO_Gallery_Image";
private static $db=[
'Title'=>'Varchar(255)',
'SortID'=>'Int',
'Adult'=>'Boolean',
'Video'=>'Text',
'Video_Autoplay'=>'Boolean',
'Video_Format'=>'Enum("16-9,4-3","16-9")'
//'DeepLinkHash'=>'Boolean'
];
private static $has_one=[
"Image"=>Image::class,
"Gallery"=>CO_Gallery::class,
'DeepLink'=>SiteTree::class
];
private static $extensions = [
Versioned::class,
];
private static $owns=[
'Image'
];
The text was updated successfully, but these errors were encountered: