Active
Project:
Media Browser Plus
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 May 2013 at 09:02 UTC
Updated:
14 Jul 2013 at 15:38 UTC
Jump to comment: Most recent file

Comments
Comment #1
das-peter commentedThat sounds like an interesting idea.
We could create several classes that extend
media_browser_plus_views_handler_area_navigationor even create a base class for MBP navigations that handles the basic functionality handled over all navigations.Then you can add / configure navigation handlers into the header / footer area of the view and the output handler outputs all instead of just one of the navigations.
The only possible problem I see is, that there could be conflicts between the handlers. E.g. what happens if you've selected an folder and now you select a date too? Is the folder ignored, but if so how do you indicate that in the UI? There's no such thing as "No folder selected" or "All folders selected" and I don't know how to implement such a thing without making the UI confusing.
Comment #2
camdarley commentedI thought a lot about it.

I'm not very aware of views development, so I trust you about your proposal ;)
Actually, I think that if we have different navigation terms, navigate through them should be independent. That mean that you can see what files are in a folders, OR what file are tagged whith a keyword, no matter what folder it is... That is the simpler way to make it work. For a different behavior (filter by tags AND folder AND anything else), it's the job of a real search engine which is not the goal of this issue (maybe for a next feature).
Simply unselect all folders and unexpose them when selecting an other navigation term should indicate that folders are ignored... that the way other browsers do.
I thought about a solution to manage multiple vocabularies (and even solve #2039845: Media Folders taxonomy term hard coded):
- On MBP configuration page, we could add as much vocabularies as we want for navigation term: We could have a page, listing chosen vocabularies, with a form "Add a vocabulary for file navigation". For all chosen vocabularies, we could have a radio button defining which vocabulary is the physical path for the files (with an option for not moving files).
- For each chosen vocabulary, a navigation handler is added to main view.