Support

Account

Home Forums Feature Requests Media Modal show sidebar

Solving

Media Modal show sidebar

  • Hi Elliot,

    Thanks for the great plugin.

    I have a request for a feature relating to the media modal window that is used to select files created from an ACF field. The modal that pops up when searching for files does not include the sidebar area. eg. http://d.pr/i/Tt20.

    I am sure this is what the majority of your users want/need. However I am using a custom page in the media model called “Add External Resource”. seen here: http://d.pr/i/skjB

    This custom page allows my users to add a url from a supported site such as Youtube, or Slideshare. Upon adding the link my plugin saves a screenshot of the video/presentation into the media manager, and lets them immediately select that file to be the chosen path for the ACF field.

    I have been able to edit the input.js file to meet my needs, seen here: http://d.pr/i/LPHU, I added line 1597 in this screenshot. This adds back in the sidebar area so I can access my custom page. However I expect my changes will be overwritten on future updates to ACF.

    What would be great would be an option somewhere in ACF that sets the value of ‘frame’ to ‘post’, or ‘select’ (with or without sidebar).

    I am not sure where that option would be set, maybe this could be done with a new filter?

    I realize that this may be a bit of an edge case, but I would really appreciate it if this made it into a future release!

    Thanks and enjoy your upcoming and well deserved vacation,

    Matt Keys

  • Hi @mkeys

    Thanks for the code and the screenshots.

    The issue with using teh sidebar area (without the external resource plugin) is that users will attempt to insert an image from a url, but this does not add it to the media manager and won’t work with ACF.

    Perhaps the best solution is to add a JS filter on the args so you can customize them for the image field?

    Thanks
    E

  • The issue with using teh sidebar area (without the external resource plugin) is that users will attempt to insert an image from a url, but this does not add it to the media manager and won’t work with ACF.

    Yes that makes sense, it is really only once you get into a highly customized situation like mine that the need for this arises.

    Perhaps the best solution is to add a JS filter on the args so you can customize them for the image field?

    Yes I think something like this would be perfect.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Media Modal show sidebar’ is closed to new replies.