From 77edfc1cfa7d115edee6bb3d3429cde299e6436d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 26 May 2024 13:21:04 +0200 Subject: [PATCH] [Backport 12.4] [FEATURE] styleguide: Add examples for disableHideAtCopy etc. with default table (#518) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [FEATURE] styleguide: Add examples for disableHideAtCopy etc. with default table It is possible to set disableHideAtCopy and disablePrependAtCopy and apply the values to all tables, using TCEMAIN.default. Examples are added to illustrate this. Resolves: #451 * Update Documentation/PageTsconfig/TceMain.rst Co-authored-by: Stefan Frömken * Update Documentation/PageTsconfig/TceMain.rst Co-authored-by: Stefan Frömken --------- Co-authored-by: Sybille Peters Co-authored-by: Chris Müller <2566282+brotkrueml@users.noreply.github.com> Co-authored-by: Stefan Frömken --- .../Documentation/PageTsconfig/TceMain.rst | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Documentation/TSconfig/Documentation/PageTsconfig/TceMain.rst b/Documentation/TSconfig/Documentation/PageTsconfig/TceMain.rst index aa1218ca6..933f12933 100644 --- a/Documentation/TSconfig/Documentation/PageTsconfig/TceMain.rst +++ b/Documentation/TSconfig/Documentation/PageTsconfig/TceMain.rst @@ -144,6 +144,17 @@ The page is hidden and the "(copy X)" suffix is added, if another page with the Hidden page with added suffix after copying its original page +Example: Apply disableHideAtCopy as default to all tables +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. code-block:: typoscript + :caption: EXT:site_package/Configuration/page.tsconfig + + TCEMAIN.default { + disableHideAtCopy = 1 + } + + .. index:: Copy record; Disable prepend string (copy) .. _pagetcemaintables-disableprependatcopy: @@ -186,6 +197,17 @@ The page is hidden and the "(copy X)" suffix is added, if another page with the Hidden page with added suffix after copying its original page +Example: Apply disablePrependAtCopy as default to all tables +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. code-block:: typoscript + :caption: EXT:site_package/Configuration/page.tsconfig + + TCEMAIN.default { + disablePrependAtCopy = 1 + } + + .. index:: Link handler .. _pagetcemaintables-linkhandler: @@ -580,6 +602,9 @@ table Processing options for tables. The table name is added, for instance `TCEMAIN.table.pages.disablePrependAtCopy = 1` or `TCEMAIN.table.tt_content.disablePrependAtCopy = 1`. +It is also possible to set a default value for all tables, for example +`TCEMAIN.default.disablePrependAtCopy = 1`. + .. index:: Localization; Translate to message .. _pagetcemain-translatetomessage: