Skip to content

Commit

Permalink
Add the new setting to the settings reference
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Dec 18, 2024
1 parent fe6e61b commit 51b43cc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/source/configuration/settings-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -464,12 +464,22 @@ querystringSearchGet
Please test this setting properly before enabling in a production site.
cssLayers
To use CSS layers when styling Volto, you can define and apply them at the very top level of the page, where they appear in the `<head>` tag.
To use CSS layers when styling Volto, you can define and apply them at the very top level of the page, where they appear in the `<head>` tag.
By using this configuration, you can pass the layer list definition as an array:
```js
config.settings.cssLayers = ['reset', 'plone-components', 'layout', 'addons', 'theme'];
```
showRelatedItems
If true, the `RelatedItems` component will show items from the `relatedItems` field. Default: false.
```{versionadded} 18.5.0
```
showTags
If true, the `Tags` component will show tags from the `subjects` field. Default: true.
```

## Views settings
Expand Down
1 change: 1 addition & 0 deletions packages/types/src/config/Settings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export interface SettingsConfig {
serverConfig: unknown;
storeExtenders: unknown[];
showTags: boolean;
showRelatedItems: boolean;
controlpanels: unknown[];
controlPanelsIcons: Record<string, React.ComponentType>;
filterControlPanels: unknown;
Expand Down

0 comments on commit 51b43cc

Please sign in to comment.