From 5a6d2f6e236db78f4ccb5d24095a36826d6fdd33 Mon Sep 17 00:00:00 2001 From: David Monjoie Date: Tue, 24 Mar 2015 11:26:44 +0100 Subject: [PATCH] [FIX] website: default options are possible to disable by xpath If we don't do that, the default options get mixed up with theme modules (including our own theme_bootswatch). Even worse, when installing any theme (including theme_bootswatch), the menu to change these options is replaced by the new theme one, so you cannot disable the broken options. This trick allows theme modules to disable the default options so they don't conflict, while restoring the user choices when uninstalling the theme. --- addons/theme_bootswatch/views/theme.xml | 7 +++ addons/website/views/themes.xml | 73 +++++++++++++++++-------- 2 files changed, 57 insertions(+), 23 deletions(-) diff --git a/addons/theme_bootswatch/views/theme.xml b/addons/theme_bootswatch/views/theme.xml index 27fa4fe8b6d..18fe7db072a 100644 --- a/addons/theme_bootswatch/views/theme.xml +++ b/addons/theme_bootswatch/views/theme.xml @@ -2,6 +2,13 @@ + + + + + + -