From 9907393ab7c53b895f5472cc4594fab998df411a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katja=20S=C3=BCss?= Date: Wed, 25 Oct 2023 10:34:43 +0200 Subject: [PATCH] Fix pattern_options for RelatedItemsFieldWidget (#1554) * Fix pattern_options. Should be dictionary. * Remove TODO StaticCatalogVocabulary in Volto Implemented with https://github.com/plone/volto/pull/4614 --- docs/backend/relations.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/backend/relations.md b/docs/backend/relations.md index 9e2d59bd1..2c1befc9a 100644 --- a/docs/backend/relations.md +++ b/docs/backend/relations.md @@ -149,7 +149,9 @@ relationlist_field = RelationList( directives.widget( "relationlist_field", RelatedItemsFieldWidget, - pattern_options=make_relation_root_path, + pattern_options={ + "basePath": make_relation_root_path, + } ) ``` @@ -333,11 +335,6 @@ When you click on {guilabel}`Edit XML field model`, you will see the fields in t ## Using different widgets for relations -```{todo} -Support for `StaticCatalogVocabulary` in Volto is currently missing. -See issues https://github.com/plone/volto/issues/3355 and https://github.com/plone/volto/issues/3439. -``` - Often the standard widget for relations is not what you want. It can be hard to navigate to the content to which you want to relate, and the search mode of the default widget is not suitable for all use cases.