Skip to content

Commit

Permalink
[Backport 12.4] [FEATURE] styleguide: Add examples for disableHideAtC…
Browse files Browse the repository at this point in the history
…opy etc. with default table (#518)

* [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 <[email protected]>

* Update Documentation/PageTsconfig/TceMain.rst

Co-authored-by: Stefan Frömken <[email protected]>

---------

Co-authored-by: Sybille Peters <[email protected]>
Co-authored-by: Chris Müller <[email protected]>
Co-authored-by: Stefan Frömken <[email protected]>
  • Loading branch information
4 people authored May 26, 2024
1 parent 0a142a7 commit 77edfc1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Documentation/TSconfig/Documentation/PageTsconfig/TceMain.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

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

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

Expand Down

0 comments on commit 77edfc1

Please sign in to comment.