From 4a88c0a83d04c0622ba2f2fe15fbaf15cdad939c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 13 Apr 2024 06:55:22 +0200 Subject: [PATCH] [TASK] Switch to confvals for mod.web_layout * use confvals * correct indentation * correct header levels * Give headers to examples No other text changes made releases: main, 12.4, 11.5 --- Documentation/PageTsconfig/Mod/WebLayout.rst | 36 ++----------------- .../Mod/_backendLayouts-example.tsconfig | 32 +++++++++++++++++ 2 files changed, 34 insertions(+), 34 deletions(-) create mode 100644 Documentation/PageTsconfig/Mod/_backendLayouts-example.tsconfig diff --git a/Documentation/PageTsconfig/Mod/WebLayout.rst b/Documentation/PageTsconfig/Mod/WebLayout.rst index 9bfde138..074c1fc5 100644 --- a/Documentation/PageTsconfig/Mod/WebLayout.rst +++ b/Documentation/PageTsconfig/Mod/WebLayout.rst @@ -65,42 +65,10 @@ BackendLayouts Example: Define a backend layout -------------------------------- -.. code-block:: typoscript +.. literalinclude:: _backendLayouts-example.tsconfig + :language: typoscript :caption: EXT:site_package/Configuration/page.tsconfig - mod.web_layout.BackendLayouts { - exampleKey { - title = Example - icon = EXT:example_extension/Resources/Public/Images/BackendLayouts/default.gif - config { - backend_layout { - colCount = 1 - rowCount = 2 - rows { - 1 { - columns { - 1 { - name = LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:colPos.I.3 - colPos = 3 - colspan = 1 - } - } - } - 2 { - columns { - 1 { - name = Main - colPos = 0 - colspan = 1 - } - } - } - } - } - } - } - } - .. index:: defaultLanguageLabel Localization; Default language label diff --git a/Documentation/PageTsconfig/Mod/_backendLayouts-example.tsconfig b/Documentation/PageTsconfig/Mod/_backendLayouts-example.tsconfig new file mode 100644 index 00000000..46ed1d57 --- /dev/null +++ b/Documentation/PageTsconfig/Mod/_backendLayouts-example.tsconfig @@ -0,0 +1,32 @@ +mod.web_layout.BackendLayouts { + exampleKey { + title = Example + icon = EXT:example_extension/Resources/Public/Images/BackendLayouts/default.gif + config { + backend_layout { + colCount = 1 + rowCount = 2 + rows { + 1 { + columns { + 1 { + name = LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:colPos.I.3 + colPos = 3 + colspan = 1 + } + } + } + 2 { + columns { + 1 { + name = Main + colPos = 0 + colspan = 1 + } + } + } + } + } + } + } +} \ No newline at end of file