Skip to content

Commit

Permalink
Fix pattern_options for RelatedItemsFieldWidget (#1554)
Browse files Browse the repository at this point in the history
* Fix pattern_options. Should be dictionary.
* Remove TODO StaticCatalogVocabulary in Volto
  Implemented with plone/volto#4614
  • Loading branch information
ksuess authored Oct 25, 2023
1 parent c83e3f9 commit 9907393
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions docs/backend/relations.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
)
```

Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit 9907393

Please sign in to comment.