widgetfactory / jce

JCE - A Content Editor for Joomla
https://www.joomlacontenteditor.net
GNU General Public License v2.0
35 stars 12 forks source link

Multiselect custom field based on JCE file manager. #44

Open lambdaheart opened 5 years ago

lambdaheart commented 5 years ago

I want to build a custom field which allows user to select multiple files instead of just one and add caption to each file.

For this I would need to have one button which will open a modal window with JCE file manager where user can upload / select multiple files.

Once the files are selected they would be added to repeatable form below the button which would consist of plg_fields_mediajce field and plg_fields_text.

Is such a thing possible with JCE file manager API? I plan to study plg_fields_mediajce to see how you are calling the API, but I'd be grateful if you can provide some guidance / advice since I haven't found much documentation about that.

Hopefully if it's good enough it'll be worth a pull request. Such field would be very useful because it will allow for nice workflow of adding article attachments and creating galleries tied to specific article.

Right now if I use repeating field with plg_fields_mediajce user would have to add images / attachments one by one which is not very user friendly.