Skip to content

Commit 9907393

Browse files
authored
Fix pattern_options for RelatedItemsFieldWidget (plone#1554)
* Fix pattern_options. Should be dictionary. * Remove TODO StaticCatalogVocabulary in Volto Implemented with plone/volto#4614
1 parent c83e3f9 commit 9907393

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

docs/backend/relations.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ relationlist_field = RelationList(
149149
directives.widget(
150150
"relationlist_field",
151151
RelatedItemsFieldWidget,
152-
pattern_options=make_relation_root_path,
152+
pattern_options={
153+
"basePath": make_relation_root_path,
154+
}
153155
)
154156
```
155157

@@ -333,11 +335,6 @@ When you click on {guilabel}`Edit XML field model`, you will see the fields in t
333335

334336
## Using different widgets for relations
335337

336-
```{todo}
337-
Support for `StaticCatalogVocabulary` in Volto is currently missing.
338-
See issues https://github.com/plone/volto/issues/3355 and https://github.com/plone/volto/issues/3439.
339-
```
340-
341338
Often the standard widget for relations is not what you want.
342339
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.
343340

0 commit comments

Comments
 (0)