From dc01efca771ed6c3f9b7e33aaef2455f57679795 Mon Sep 17 00:00:00 2001 From: Yuri Date: Tue, 23 Jul 2024 15:58:24 +0200 Subject: [PATCH 1/4] Update manifest.cfg Add the portal_url parameter to be used with Diazo rules --- plonetheme/barceloneta/theme/manifest.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plonetheme/barceloneta/theme/manifest.cfg b/plonetheme/barceloneta/theme/manifest.cfg index 10a5996e..d9578b75 100644 --- a/plonetheme/barceloneta/theme/manifest.cfg +++ b/plonetheme/barceloneta/theme/manifest.cfg @@ -14,3 +14,6 @@ production-css = ++theme++barceloneta/css/barceloneta.min.css tinymce-content-css = /++theme++barceloneta/css/barceloneta.min.css development-js = production-js = + +[theme:parameters] +# portal_url = python: portal.absolute_url() From bd43f446ce398f8c7acddab74c0504d91cd66a7d Mon Sep 17 00:00:00 2001 From: Yuri Date: Tue, 23 Jul 2024 16:01:33 +0200 Subject: [PATCH 2/4] Update backend.xml Use the portal_url theme parameter in backend.xml --- plonetheme/barceloneta/theme/backend.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plonetheme/barceloneta/theme/backend.xml b/plonetheme/barceloneta/theme/backend.xml index fda9a722..15476c51 100644 --- a/plonetheme/barceloneta/theme/backend.xml +++ b/plonetheme/barceloneta/theme/backend.xml @@ -47,7 +47,7 @@ - From e1f6c6cf9be31e56939798dc411b1917786781d0 Mon Sep 17 00:00:00 2001 From: Yuri Date: Tue, 23 Jul 2024 16:06:29 +0200 Subject: [PATCH 3/4] Create 376.feature --- news/376.feature | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/376.feature diff --git a/news/376.feature b/news/376.feature new file mode 100644 index 00000000..0aed4bdc --- /dev/null +++ b/news/376.feature @@ -0,0 +1 @@ +[yurj] Add the portal_url parameter to be used with Diazo rules and implement it in backend.xml From 01c75cf6e7e1dc5e2ed43be84eacf52dc21e7297 Mon Sep 17 00:00:00 2001 From: Yuri Date: Tue, 23 Jul 2024 16:49:42 +0200 Subject: [PATCH 4/4] Update manifest.cfg Use TAL expression, safer. --- plonetheme/barceloneta/theme/manifest.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plonetheme/barceloneta/theme/manifest.cfg b/plonetheme/barceloneta/theme/manifest.cfg index d9578b75..174bb468 100644 --- a/plonetheme/barceloneta/theme/manifest.cfg +++ b/plonetheme/barceloneta/theme/manifest.cfg @@ -16,4 +16,4 @@ development-js = production-js = [theme:parameters] -# portal_url = python: portal.absolute_url() +portal_url = portal_state/portal_url