From 463f1aac5379b04b7d8c1823a1e98b905b7388de Mon Sep 17 00:00:00 2001 From: Mauro Amico Date: Thu, 25 Jul 2024 13:07:32 +0200 Subject: [PATCH 1/5] split news behaviors --- .../contenttypes/behaviors/configure.zcml | 8 ++++++ .../behaviors/news_additional_fields.py | 25 +++++++++++-------- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/src/design/plone/contenttypes/behaviors/configure.zcml b/src/design/plone/contenttypes/behaviors/configure.zcml index 10d55afa..9c7ed276 100644 --- a/src/design/plone/contenttypes/behaviors/configure.zcml +++ b/src/design/plone/contenttypes/behaviors/configure.zcml @@ -38,6 +38,14 @@ marker=".news_additional_fields.INewsAdditionalFields" /> + + Date: Thu, 25 Jul 2024 13:11:02 +0200 Subject: [PATCH 2/5] changelog --- CHANGES.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 2744254b..43b2d362 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,8 @@ Changelog 6.2.15 (unreleased) ------------------- -- Nothing changed yet. +- Add design.plone.contenttypes.behavior.news_base behavior (news metadata, without blocks) + [mamico] 6.2.14 (2024-07-11) From c56206ad8c6c8dc06267c772275247469a3bfb34 Mon Sep 17 00:00:00 2001 From: Mauro Amico Date: Thu, 25 Jul 2024 15:09:59 +0200 Subject: [PATCH 3/5] fix test --- src/design/plone/contenttypes/tests/test_ct_news.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/design/plone/contenttypes/tests/test_ct_news.py b/src/design/plone/contenttypes/tests/test_ct_news.py index 4239d9c2..1256782a 100644 --- a/src/design/plone/contenttypes/tests/test_ct_news.py +++ b/src/design/plone/contenttypes/tests/test_ct_news.py @@ -125,11 +125,11 @@ def test_news_item_fields_default_fieldset(self): "image_caption", "preview_image", "preview_caption", - "descrizione_estesa", "numero_progressivo_cs", "a_cura_di", "a_cura_di_persone", "luoghi_correlati", + "descrizione_estesa", "tassonomia_argomenti", "tipologia_notizia", ], From db1797982c9aca5d71933ea3cb2fea9bd827801b Mon Sep 17 00:00:00 2001 From: Mauro Amico Date: Thu, 25 Jul 2024 18:29:39 +0200 Subject: [PATCH 4/5] add subobject in comunicatostampa --- .../plone/contenttypes/events/common.py | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/design/plone/contenttypes/events/common.py b/src/design/plone/contenttypes/events/common.py index 70d69fbc..0d1268c3 100644 --- a/src/design/plone/contenttypes/events/common.py +++ b/src/design/plone/contenttypes/events/common.py @@ -100,6 +100,26 @@ }, ], }, + "ComunicatoStampa": { + "content": [ + { + "id": "multimedia", + "title": "Multimedia", + "allowed_types": ( + "Image", + "Link", + ), + }, + { + "id": "documenti-allegati", + "title": "Documenti allegati", + "allowed_types": ( + "File", + "Image", + ), + }, + ] + }, "Persona": { "content": [ { From 9c75541d179a4efc1b16c1d89649d8acbac109fe Mon Sep 17 00:00:00 2001 From: Mauro Amico Date: Fri, 26 Jul 2024 09:14:05 +0200 Subject: [PATCH 5/5] Update CHANGES.rst --- CHANGES.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 43b2d362..b125d8b5 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,8 @@ Changelog - Add design.plone.contenttypes.behavior.news_base behavior (news metadata, without blocks) [mamico] +- Add folder creation (multimedia + allegati) for "ComunicatiStampa" CT (if exists) + [mamico] 6.2.14 (2024-07-11)