From 4e088e46e30f2ddfd4a71d751fdafb7cf3e2dfde Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Fri, 11 Mar 2016 13:55:15 +0100 Subject: [PATCH 1/2] Use ``getSite()`` instead of portal url Change base URLs from portal URL to what getSite returns, but don't change the theming controlpanel context binding. This allows for more flexibility when configuring it to be allowed on a sub site with a local registry. --- CHANGES.rst | 4 ++- src/plone/app/theming/browser/controlpanel.pt | 13 +++++---- src/plone/app/theming/browser/controlpanel.py | 28 +++++++++---------- 3 files changed, 24 insertions(+), 21 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 4a849cb0..d2600af7 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,7 +10,9 @@ Incompatibilities: New: -- *add item here* +- Change base URLs from portal URL to what getSite returns, but don't change the theming controlpanel context binding. + This allows for more flexibility when configuring it to be allowed on a sub site with a local registry. + [thet] Fixes: diff --git a/src/plone/app/theming/browser/controlpanel.pt b/src/plone/app/theming/browser/controlpanel.pt index f1e7b6a9..7f1c45fe 100644 --- a/src/plone/app/theming/browser/controlpanel.pt +++ b/src/plone/app/theming/browser/controlpanel.pt @@ -12,7 +12,8 @@ view nocall:view | nocall: plone_view; portal_url portal_state/portal_url; ajax_load python:False; - dummy python: request.set('disable_toolbar', True);" + dummy python: request.set('disable_toolbar', True); + site_url view/site_url" tal:attributes="lang lang;"> @@ -72,9 +73,9 @@ i18n:translate="heading_theme_settings">Theme settings - Up to Site Setup + tal:attributes="href string:$site_url/@@overview-controlpanel" + i18n:translate=""> + Site Setup @@ -100,12 +101,12 @@ data-pat-plone-modal="width: 80%" i18n:translate="">Upload Zip file - Test Styles - Date: Fri, 11 Mar 2016 14:10:16 +0100 Subject: [PATCH 2/2] typo --- CHANGES.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index d2600af7..9b9f97d5 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,7 +10,7 @@ Incompatibilities: New: -- Change base URLs from portal URL to what getSite returns, but don't change the theming controlpanel context binding. +- For the theming controlpanel, change base URLs from portal URL to what getSite returns, but don't change the controlpanels context binding. This allows for more flexibility when configuring it to be allowed on a sub site with a local registry. [thet]