I'm not sure if this is really a support request or a feature request.
I'd like to have a general place where users go to access the "file manager".
I know they can go to /imce but that shows no theme so they're likely to get lost if they go there.
They can go to /user/uid/imce. That's okay although that shows the public theme so there can be a problem with the width of the content area. We're not using user specific folders so that kind of feels like the wrong place.
They can access IMCE within a wysiwyg editor which works well but they often want to just "manage files" without editing a page.
For me the ideal thing would be for IMCE to show in the the admin theme. Is that possible?
The elFinder module adds a "Files" menu tab to /admin/content. That's exactly what I wish IMCE would do although I prefer IMCE for several reasons.
I guess I can add a tab to /admin/content and use some Javascript to make IMCE popup in a window.
Looking back, I see that I asked something similar over a year ago when I was using Drupal 6.
Thanks
Comment | File | Size | Author |
---|---|---|---|
#12 | imce-1437704-12-d7.patch | 2.39 KB | paulocs |
#11 | imce-1437704-11-d7.patch | 2.43 KB | paulocs |
#9 | Screenshot from 2020-05-22 10-15-07.png | 53.3 KB | paulocs |
#8 | imce-1437704-8-D7.patch | 1.17 KB | thalles |
#5 | 1437704-2-imce-custum_menu_link.patch | 5.63 KB | mesr01 |
Comments
Comment #1
Juhani CreditAttribution: Juhani commentedI decided to create a general place like this for my users. It's not a good idea to link the path /imce directly anywhere as there's no theme included. So, I added a new content type "system" that I will dedicate to small system-level customizations like this. Then I created a new file browser node that contains iframe for /imce, similar that exist on each user account page. I provide them administration menu, so I linked this node as a subitem of the content tab.
With this code IMCE can be added anywhere:
<iframe frameborder="0" class="imce-frame" style="border: 1px solid #eee; width: 99%; height: 520px" src="/imce"></iframe>
Comment #2
ladybug_3777 CreditAttribution: ladybug_3777 commentedI agree that this would be an important thing to add. The /user/uid/imce page really doesn't lend itself to ease of use in my site's Theme. I've had to go out of my way to suppress blocks so I could get a larger width out of my theme for that page, but now I'm having issues with the height being kind of small. It seems odd that "admin" area doesn't exist.
Comment #3
mesr01 CreditAttribution: mesr01 commentedIt does indeed make a lot of sense. This patch may do the trick. Now the menu link can be customized by going at
admin/config/media/imce
, under "Common settings".Comment #4
mesr01 CreditAttribution: mesr01 commentedComment #5
mesr01 CreditAttribution: mesr01 commentedHere's an improved version of the patch. The new custom link is now independant of the default menu tab in the user pages (i.e. both links can be toggled independently).
Comment #6
notbear CreditAttribution: notbear commentedHello, the path works well in most cases. But I was getting warnings on pl/admin/content view. It was about $account imce_user_page_access callback which was getting string in $account variable instead of object, so it was impossible to get any property from that.
So in this part:
my suggestion is:
Comment #7
thallesneeds reroll
Comment #8
thallesFollow a patch!
Comment #9
paulocsIt looks good. Now we have the possibility to open IMCE just to browser.
Comment #10
paulocsI'll create a configuration option to enable the link.
Comment #11
paulocsHello @thalles,
I just create a configuration option so the user can choose if he will create the menu link or not.
Thanks!
Comment #12
paulocsPlease review patch #12
Comment #14
thallesLooks good to me, thanks all!