-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Introduce Site Settings Editor
Resolves: TYPO3-Documentation/Changelog-To-Doc#1026 Releases: main
- Loading branch information
Showing
11 changed files
with
270 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
Documentation/ApiOverview/SiteHandling/SiteSettingsEditor.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
.. include:: /Includes.rst.txt | ||
.. index:: Site handling; Site settings editor | ||
.. _site-settings-editor: | ||
|
||
==================== | ||
Site settings editor | ||
==================== | ||
|
||
.. versionadded:: 13.3 | ||
The site setting editor has been introduced as backend module | ||
:guilabel:`Sites > Settings`. | ||
|
||
In module :guilabel:`Sites > Settings` you get an overview of all sites in | ||
the current installation and can edit the :ref:`sitehandling-settings` for | ||
all pages that contain settings: | ||
|
||
.. figure:: /Images/ManualScreenshots/SiteHandling/SiteSettingsOverview.png | ||
:alt: Screenshot of the Site Settings module in overview | ||
|
||
Site "Home" has settings that can be edited. The others do not. | ||
|
||
The settings editor displays the settings of all site sets included in the | ||
current site, including their dependencies. The site sets can define categories | ||
and subcategories to order the settings. | ||
|
||
.. figure:: /Images/ManualScreenshots/SiteHandling/SiteSettings.png | ||
:alt: Screenshot of the settings of an example site | ||
|
||
The site in the examples includes the "My Sitepackage" and "Blog Example" | ||
sets. "My Sitepackage" depends on "Fluid Styled Content" | ||
|
||
The settings to be displayed here have to be defined in an extension`s or | ||
site packages's set in a `setting definition <site-settings-definition>` file, for example | ||
:file:`EXT:my_sitepackage/Configuration/Sets/MySitepackage/settings.definitions.yaml`. | ||
|
||
Settings that have been made directly in the :file:`settings.yaml` file without a | ||
corresponding entry in a :file:`settings.definitions.yaml` are not displayed in | ||
the editor as they have neither a type nor a label. These values are, however, | ||
retained when the editor writes to the :file:`settings.yaml` file. | ||
|
||
.. _sitehandling-settings-editor-configuration: | ||
|
||
Configuring the site settings editor | ||
==================================== | ||
|
||
.. figure:: /Images/ManualScreenshots/SiteHandling/SiteSettingsDefinition.png | ||
:alt: Screenshot demonstration the position of the categories, labels etc | ||
|
||
The parts marked by a number can be configured, see list bellow | ||
|
||
.. literalinclude:: _Settings/_blog_settings.definitions.yaml | ||
:caption: EXT:blog_example/Configuration/Sets/BlogExample/settings.definitions.yaml (Excerpt) | ||
|
||
See the complete example at | ||
`settings.definitions.yaml (GitHub) <https://github.com/TYPO3-Documentation/blog_example/blob/main/Configuration/Sets/BlogExample/settings.definitions.yaml>`__. | ||
|
||
.. rst-class:: bignums-attention | ||
|
||
1. Main category | ||
|
||
The label of the category is defined in *line 3* of the example code snippet. | ||
*Line 6 and 9* place two categories as subcategories into this category. | ||
|
||
2. Sub category | ||
|
||
The sub category is defined in *line 5 to 6*. *Line 14* locates the setting | ||
in this subcategory. | ||
|
||
3. Label | ||
|
||
Can be defined directly in the settings definition (*line 13*) or in a | ||
:file:`labels.xlf` file. | ||
|
||
4. Description | ||
|
||
Can be defined directly in the settings definition (*line 15*) or in a | ||
:file:`labels.xlf` file. | ||
|
||
5. Type | ||
|
||
*line 16*, for possible types see :ref:`definition-types`. | ||
|
||
6. Default value | ||
|
||
*line 23* the default value is displayed if the value of the settings was | ||
not overridden. If the value was overridden, it can be reset to the default. | ||
|
||
.. figure:: /Images/ManualScreenshots/SiteHandling/SiteSettingsReset.png | ||
:alt: Screenshot showing the "Reset settings" button in the settings popup menu | ||
|
||
Reset the setting to the default value |
23 changes: 23 additions & 0 deletions
23
Documentation/ApiOverview/SiteHandling/_Settings/_blog_settings.definitions.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
categories: | ||
BlogExample: | ||
label: 'Blog Example' # (1) | ||
BlogExample.templates: | ||
label: 'Templates' # (2) | ||
parent: BlogExample | ||
BlogExample.pages: | ||
label: 'Pages' | ||
parent: BlogExample | ||
|
||
settings: | ||
blogExample.templateRootPath: # (5) | ||
label: 'Templates' # (3) | ||
category: BlogExample.templates # (2) | ||
description: 'Path to template root' # (4) | ||
type: string # (6) | ||
default: 'EXT:blog_example/Resources/Private/Templates/' # (7) + (8) | ||
blogExample.partialRootPath: | ||
label: 'Partials' | ||
category: BlogExample.templates | ||
description: 'Path to partial root' | ||
type: string | ||
default: 'EXT:blog_example/Resources/Private/Partials/' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.4 KB
Documentation/Images/ManualScreenshots/SiteHandling/SiteSettingsDefinition.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+45.5 KB
Documentation/Images/ManualScreenshots/SiteHandling/SiteSettingsOverview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.9 KB
Documentation/Images/ManualScreenshots/SiteHandling/SiteSettingsReset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.2 KB
Documentation/Images/ManualScreenshots/SiteHandling/SiteSettingsTypes1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25.4 KB
Documentation/Images/ManualScreenshots/SiteHandling/SiteSettingsTypes2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.