Closed (fixed)
Project:
Image Widget Crop
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Aug 2016 at 11:22 UTC
Updated:
5 Apr 2017 at 15:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
woprrr commentedHii thank a lot for your feedback and idea !!!
Is true for me imce is not needded in my usecases i prefer entitybrowser approach. I can purpose that if IMCE is installed create an sumodule to Provide an widget compatible with IMCE checkbox (is just an widget to extend iwc class to add this feature).
I Check possibilities in my come back but really good idea :) if you need participate to this subproject you are free i love Work with iwc users to have best crop feature.
Comment #3
ladyofthelake commentedHi, sorry for the late reply!
Thanks for looking on this. I would also prefer Entity Browser, but it doesn't work as it should be. So until they get it production ready it's IMCE - which is much easier to work with btw.
I'm not much of a coder myself, but I'd really like to have IMCE support to Image Widget Crop :-)
Lena
Comment #4
xem8vfdh commented+1, this would be awesome!
Comment #5
woprrr commentedhi @all :) i think we can discuss about it more free in (imagewidgetcrop.slack.com) dedicated slack. I can purpose to see all possibilites & usecase about this feature request during DrupalCon dublin IWC sprint.
Comment #6
xem8vfdh commentedI'm not sure I will be able to make it to the slack chat room, but I'm envisioning a simple duplication of an IMCE configuration that gets injected into the Manage Form Display page for simple Image fields. Once you've installed IMCE on Drupal 8, you can create an image field on a content type (or simply look at one you've already created), then go into "Manage Form Display" for the content type, click the configuration/settings gear icon on the right side of the window for the field in question, and you will see an option to "Allow users to select files from Imce File Manager for this field." [see attached imce_manage_form_display_configuration.png file].
Once you've done this, if you create/edit a record for this content type, you will see a new option on the field in question to "Open File Browser" [see attached open_file_browser_option.png file]. You can click this option, instead of the standard "Choose Files" option to select files from the server instead of uploading a new file.
You can see how IMCE is building/handling this configuration option by doing the following in a ssh terminal session:
The configuration is set up in src/ImceFileField.php
Comment #7
tjerkr commentedThanks to xeM8VfDh for pointing out the file location src/ImceFileField.php.
I was able to make a patch file for imce to add this option to the Image Widget Crop widget.
Referring to the patch in the attachment.
Comment #8
woprrr commentedI see that as soon as possible Thanks a lot guys !
Comment #9
xem8vfdh commentedThank YOU @woprrr and @tjerkr
Comment #10
woprrr commentedComment #11
woprrr commentedHi guys,
This patch solve the problem and assume the support request. @tjerkr Sorry to change your patch totally but this isn't work for IMCE. He have create an hook to permit other module to integrate her widget to supported list.
Can you test it fast and tell me if all is okay, I need to integrate this on next release :).
Comment #12
duaelfrFixing event tag
Comment #13
xem8vfdh commentedThanks @woprrr!
Comment #14
woprrr commentedReady to integrate future release :). I merge it during my sprint night ;)
Comment #15
xem8vfdh commentedGreat work @woprrr! You've got to be one of the most responsive devs on drupal.org. I for one really appreciate the hard work and rapid response rate!
Comment #17
woprrr commentedMerged Thanks guys.
Thank @xeM8VfDh it motivate me a lot to increase quality of this module !
Comment #19
woprrr commented