nova-medialibrary-field icon indicating copy to clipboard operation
nova-medialibrary-field copied to clipboard

Automatically open custom properties modal after choosing an image #246

Open moustafaart4muslim opened this issue 4 years ago • 9 comments

Can't find a way to automatically open custom properties modal after choosing an image.

moustafaart4muslim avatar Mar 24 '21 04:03 moustafaart4muslim

@moustafaart4muslim Could you please provide more details?

dmitrybubyakin avatar Mar 24 '21 05:03 dmitrybubyakin

Thank you for your fast reply.

What I'm trying to do, is to make the custom properties modal (Feilds modal )automatically open after choosing a media file, To force the user to fill these fields(custom preoprties).

In another way, I want to trigger click on the (edit media button) when the user chooses an image.

@dmitrybubyakin

moustafaart4muslim avatar Mar 24 '21 06:03 moustafaart4muslim

@moustafaart4muslim Do you want the user to fill these fields before or after uploading?

dmitrybubyakin avatar Mar 24 '21 06:03 dmitrybubyakin

I prefer before uploading. @dmitrybubyakin

moustafaart4muslim avatar Mar 24 '21 06:03 moustafaart4muslim

@moustafaart4muslim There is no ability to fill the fields before uploading.

dmitrybubyakin avatar Mar 24 '21 06:03 dmitrybubyakin

So how can I achieve this after uploading? @dmitrybubyakin

moustafaart4muslim avatar Mar 24 '21 06:03 moustafaart4muslim

@moustafaart4muslim Right now - you cannot. It requires some customisation.

dmitrybubyakin avatar Mar 24 '21 06:03 dmitrybubyakin

OK, but there is a problem may be considered related to this request. I can create the resource without setting the fields that are set to have the (required) rule, I think this have to has a fix, either by forcing the modal to open just after upload to force user to enter the required fields, or by processing the required validation on all attached media files when the clicks on create resource.

@dmitrybubyakin

moustafaart4muslim avatar Mar 24 '21 11:03 moustafaart4muslim

@moustafaart4muslim I'll try to cover this in the next release. Thank you for the idea.

dmitrybubyakin avatar Mar 24 '21 11:03 dmitrybubyakin