Use IMCE with Media Library Widget

Created on 8 May 2020, over 5 years ago
Updated 8 May 2023, over 2 years ago

Hello,

I have created an image media with an image field. In the section "manage the display of the form", I configured "Imce enabled" to "yes" for this field. When I try to create a new media in a content, it opens the media browser with the image field but there is no link for IMCE. Any idea?

I need this feature for some clients who needs to configure the file path manually and access on the imce library for create media.

Thanks.

Myriam

โœจ Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

๐Ÿ‡ซ๐Ÿ‡ทFrance myriam_b

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States sassafrass

    Thank-you, joekers โ†’ for your code contribution: #11 โœจ Use IMCE with Media Library Widget Needs work . I have yet again, encountered this requirement with another client.

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium ehanuise

    The issue is still present with 3x : on a fresh install, the drupal media library does not recognise IMCE and only offers the standard file upload controls.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States robertmartin1961

    I am only adding a comment to express my encounter with this issue. During it's normal and expected operation, having use and access to select existing media files via the IMCE file manager widget in the media field was an invaluable and desired functionality. Though I have enabled "Allow users to select files from Imce File Manager for this field.", the file manager widget to access the files does not appear in the media field .

    I have spent weeks searching for any existing issue that addresses this issue and believe that this issue is directly related to my issue. Another issue citations did suggest a conflict with JS files associated with specific themes, but I was unable to thread that needle. I hope ehanuise โ†’ can develop a solution.

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom chris5156 London

    Just to add that I am also facing this issue. I have built a custom module using @joekers' code at #11, which has worked for me.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia souvik_banerjee

    @joekers' code at #11 also works for 10.2.10 version as well. Thanks for the code!

  • ๐Ÿ‡ซ๐Ÿ‡ทFrance sahri

    Hello,

    While this issue concerns multi-file selection, I just wanted to note that Iโ€™m currently working on a custom module that integrates a specific widget field with IMCE.

    My goal is to streamline the user experience in a targeted context โ€” although it doesnโ€™t implement multi-file selection, it may serve as a helpful reference for similar use cases or integration patterns.

    Iโ€™ll be happy to share details or contribute if the approach can be useful to others.

  • ๐Ÿ‡ซ๐Ÿ‡ทFrance sahri

    Hello again,

    Iโ€™m happy to share that the first version of the module is now ready! ๐ŸŽ‰
    You can check it out and give it a try here:

    ๐Ÿ”— IMCE Field Widget โ†’

    While it doesnโ€™t support multi-file selection, it focuses on a clean integration between a field widget and IMCE, and may serve as a helpful reference for similar use cases.

    Feedback, testing, and suggestions are more than welcome โ€” and Iโ€™d be glad to collaborate if this approach proves useful for others.

    Thanks!

Production build 0.71.5 2024