Hi,
my second philosophical question for tonight :-)
I ran into this one while trying to use bootstrap-darkroom as my default theme for mobile and elegant-slick for desktop.
For the desktop theme I'm using the RV Menu Tree plugin. Unfortunately, that doesn't work with bootstrap-darkroom. I can see a few ways how to resolve this:
Theme checks for plugin
I extend bootstrap-darkroom to check and disable RV Menu Tree.
Plugin checks for theme
I hack RV Menu Tree to do nothing when bootstrap-darkroom is the theme.
Compatibility manager
In a perfect world Piwigo would provide some functionality to track & handle incompatibilities between things :-)
Again, what is the "better" approach, if any? Any architectural/practical/philosophical things to take into account?
Personally, I feel that extending the theme is preferable, since I don't know of any similar way to easily extend a plugin.
Any thoughts an this?
Thoma
Offline