Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Media Galleries: widget location doesn't make sense #2569
The explenation in fork:
Why are media gallery widgets added to the media library??? it doesn't make sense!
@jeroendesloovere isn't the entire point of the
Imo there's a conflict of responsibilities here.
I get where you're coming from, but I think other modules should access the
The MediaGalleries module is just build as an example module to show everybody how you can implement the MediaLibrary MediaGroup and how to use
Solution for your question
I do made it possible for everybody to place "custom widgets" in "their own custom modules directories".
What needs to be changed in Backend:
What needs to be changed in Frontend:
But I insist that the default media library widgets remain on their place in the MediaLibrary module, since that is the "core" for everything (and MediaGalleries is just an example module).
@carakas Yes, off course you can. That is the entire principle of the Media Library.
I strongly advice you guys read this documentation page
And specifically the Frontend section