Announcement

  •  » Themes
  •  » How to resolve themes & plugins that don't work together?

#1 2017-11-22 22:11:14

TheDoc
Member
Munich / Germany
2015-10-18
173

How to resolve themes & plugins that don't work together?

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

 
  •  » Themes
  •  » How to resolve themes & plugins that don't work together?

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact