Hi there,
I'm not sure if this is a bug, an intended behaviour from the module or incorrect configuration (or maybe even all 3).
I have a site that's been using Media2 (currently latest Alpha 4) for a little while with some images that have been uploaded into the media root directory (files) prior to installing MBP. Once MBP has been installed, on the MBP Library or MBP My files views on any media fields or on the embed media into WYSIWYG button I am unable to see any of the files uploaded into media prior to the MBP install.
Anything I upload after the MBP install is perfectly viewable, and if I use the traditional "library" or "my files" tabs I can view files that were uploaded both before and after the Media Browser Plus install.
I was wondering if this is how the module is expected to behave as I found it quite counter-intuitive and I could see this being a problem on sites that have been operating for any length of time that would like to use media browser plus as opposed to new builds where this wouldn't really be an issue.
I'm hoping for my own sake I've just done something wrong so any help would be great.
Thanks!
Comments
Comment #1
zuernBernhard CreditAttribution: zuernBernhard commentedSame problem here. How to solve it ?
Comment #2
zuernBernhard CreditAttribution: zuernBernhard commentedOk got a little bit further .... Media Browser Plus has a custom view handler (Media Browser Plus Navigation). It extends the View-Query to filter for a certain Media-Folder. The "old" files have no media-folder. Thats why the view does not display them....
... Perhabs its possible to write some kind of "import" assign media folders for existing files.
Comment #3
zuernBernhard CreditAttribution: zuernBernhard commentedexample.drush.inc
example.module
Comment #4
PI_Ron CreditAttribution: PI_Ron commented@zuernBernhard Did your solution work for you?
Comment #5
zuernBernhard CreditAttribution: zuernBernhard commentedYes that solved the problem for us.
Comment #7
das-peter CreditAttribution: das-peter commentedI've just extended the filter handling in the related handler (
media_browser_plus_views_handler_area_navigation
).Files without folders should now be displayed whenever media root is used.
Would be great if you could test this in your environment. Thanks!
Comment #8
PI_Ron CreditAttribution: PI_Ron commented@das-peter is this in dev?
Comment #9
das-peter CreditAttribution: das-peter commented@PI_Ron Yes
Comment #10
das-peter CreditAttribution: das-peter commentedMarking as fixed.