From c588864e95d925e7d665a318c55f61f60d7eed88 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 2 Dec 2023 15:24:08 +0100 Subject: [PATCH] [Backport 12.4] Use myext_pi1 instead of my_ext_pi1 (#407) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On the TCEFORM page there are several examples for setting properties in Flexforms. Usually "my_ext_pi1" is given, but this should rather by "myext_pi1". Resolves: #403 --------- Co-authored-by: Sybille Peters Co-authored-by: Chris Müller <2566282+brotkrueml@users.noreply.github.com> --- Documentation/PageTsconfig/TceForm.rst | 44 ++++++++++----------- Documentation/UsingSetting/PageTSconfig.rst | 10 +++++ 2 files changed, 32 insertions(+), 22 deletions(-) diff --git a/Documentation/PageTsconfig/TceForm.rst b/Documentation/PageTsconfig/TceForm.rst index fd3aadbc..ab4430dc 100644 --- a/Documentation/PageTsconfig/TceForm.rst +++ b/Documentation/PageTsconfig/TceForm.rst @@ -34,7 +34,7 @@ The `[dataStructureKey]` represents the key of a FlexForm in :php:`$GLOBALS['TCA'][]['columns'][]['config']['ds']`. This key will be split into up to two parts. By default the first part will be used as identifier of the FlexForm in TSconfig. The second part will override the identifier if it is not empty, `list` or `*`. For example the identifier of the key -`my_ext_pi1,list` will be `my_ext_pi1` and of the key `*,my_CType` it will be `my_CType`. See section +`myext_pi1,list` will be `myext_pi1` and of the key `*,my_CType` it will be `my_CType`. See section :ref:`Pointing to a data structure ` of the TCA reference for details. Some properties apply to whole FlexForm sheets, their property path is @@ -83,7 +83,7 @@ addItems `TCEFORM.tt_content.header_layout.types.textpic.addItems` Flex form field level, example: - `TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF.myField.addItems` + `TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.myField.addItems` Where `sDEF` is the sheet name. @@ -132,7 +132,7 @@ altLabels `TCEFORM.[tableName].[fieldName].types.[typeName].altLabels` Flex form field level, example: - `TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF.myField.altLabels` + `TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.myField.altLabels` Where `sDEF` is the sheet name. @@ -187,7 +187,7 @@ PAGE_TSCONFIG_ID .. code-block:: typoscript :caption: EXT:site_package/Configuration/page.tsconfig - TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF.myField.PAGE_TSCONFIG_ID = 22 + TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.myField.PAGE_TSCONFIG_ID = 22 In this example, the value will substitute the marker in a plugin FlexForm. @@ -216,7 +216,7 @@ PAGE_TSCONFIG_IDLIST .. code-block:: typoscript :caption: EXT:site_package/Configuration/page.tsconfig - TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF.myField.PAGE_TSCONFIG_IDLIST = 20,21,22 + TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.myField.PAGE_TSCONFIG_IDLIST = 20,21,22 In this example, the value will substitute the marker in a plugin FlexForm. @@ -245,7 +245,7 @@ PAGE_TSCONFIG_STR .. code-block:: typoscript :caption: EXT:site_package/Configuration/page.tsconfig - TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF.myField.PAGE_TSCONFIG_STR = %hello% + TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.myField.PAGE_TSCONFIG_STR = %hello% In this example, the value will substitute the marker in a plugin FlexForm. @@ -309,7 +309,7 @@ config :typoscript:`TCEFORM.tt_content.header.types.textpic.config.max` Flex form field level, example: - :typoscript:`TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF.myInputField.config.max` + :typoscript:`TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.myInputField.config.max` Where :typoscript:`sDEF` is the sheet name. @@ -347,7 +347,7 @@ config.treeConfig `TCEFORM.tt_content.header.types.config.treeConfig.startingPoints` Flex form field level, example: - `TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF.myField.config.treeConfig.startingPoints` + `TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.myField.config.treeConfig.startingPoints` Where `sDEF` is the sheet name. @@ -424,12 +424,12 @@ disabled `TCEFORM.tt_content.header.types.textpic.disabled` Flex form sheet level. If set, the entire tab is not rendered, example: - `TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF.disabled` + `TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.disabled` Where `sDEF` is the sheet name. Flex form field level, example: - `TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF.myField.disabled` + `TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.myField.disabled` Where `sDEF` is the sheet name. @@ -474,7 +474,7 @@ disableNoMatchingValueElement `TCEFORM.tt_content.header_layout.types.textpic.disableNoMatchingValueElement` Flex form field level, example: - `TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF.myField.disableNoMatchingValueElement` + `TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.myField.disableNoMatchingValueElement` Where `sDEF` is the sheet name. @@ -537,7 +537,7 @@ fileFolderConfig `TCEFORM.[tableName].[fieldName].types.[typeName].fileFolderConfig.folder` Flex form field level, example: - `TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF.myField.fileFolderConfig.folder` + `TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.myField.fileFolderConfig.folder` Where `sDEF` is the sheet name. @@ -566,7 +566,7 @@ itemsProcFunc `TCEFORM.[tableName].[fieldName].types.[typeName].itemsProcFunc` Flex form field level, example: - `TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF.myField.itemsProcFunc` + `TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.myField.itemsProcFunc` Where `sDEF` is the sheet name. @@ -593,7 +593,7 @@ keepItems `TCEFORM.tt_content.header_layout.types.textpic.keepItems` Flex form field level, example: - `TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF.myField.keepItems` + `TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.myField.keepItems` Where `sDEF` is the sheet name. @@ -633,7 +633,7 @@ label `TCEFORM.[tableName].[fieldName].types.[typeName].label` Flex form field level, example: - `TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF.myField.label` + `TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.myField.label` Where `sDEF` is the sheet name. @@ -673,7 +673,7 @@ noMatchingValue_label `TCEFORM.tt_content.header_layout.types.textpic.noMatchingValue_label` Flex form field level, example: - `TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF.myField.noMatchingValue_label` + `TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.myField.noMatchingValue_label` Where `sDEF` is the sheet name. @@ -714,7 +714,7 @@ removeItems `TCEFORM.tt_content.header_layout.types.textpic.removeItems` Flex form field level, example: - `TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF.myField.removeItems` + `TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.myField.removeItems` Where `sDEF` is the sheet name. @@ -740,7 +740,7 @@ sheetDescription Specifies a description for the sheet shown in the FlexForm. This property is only available on flex form sheet level, example: - `TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF.sheetDescription` + `TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.sheetDescription` Where `sDEF` is the sheet name. @@ -758,7 +758,7 @@ sheetShortDescr Specifies a short description of the sheet used as link title in the tab-menu. This property is only available on flex form sheet level, example: - `TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF.sheetShortDescription` + `TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.sheetShortDescription` Where `sDEF` is the sheet name. @@ -775,7 +775,7 @@ sheetTitle Set the title of the sheet / tab in a FlexForm configuration. This property is only available on flex form sheet level, example: - `TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF.sheetTitle` + `TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.sheetTitle` Where `sDEF` is the sheet name. @@ -783,9 +783,9 @@ sheetTitle .. code-block:: typoscript :caption: EXT:site_package/Configuration/page.tsconfig - TCEFORM.tt_content.pi_flexform.my_ext_pi1.sDEF { + TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF { # Rename the first tab of the FlexForm plug-in configuration - sheetTitle = LLL:my_ext/Resource/Private/Language/locallang.xlf:tt_content.pi_flexform.my_ext_pi1.sDEF + sheetTitle = LLL:my_ext/Resource/Private/Language/locallang.xlf:tt_content.pi_flexform.myext_pi1.sDEF } diff --git a/Documentation/UsingSetting/PageTSconfig.rst b/Documentation/UsingSetting/PageTSconfig.rst index 7d0e490e..ad9eecd4 100644 --- a/Documentation/UsingSetting/PageTSconfig.rst +++ b/Documentation/UsingSetting/PageTSconfig.rst @@ -175,6 +175,16 @@ The TypoScript syntax to :ref:`modify ` values can also be used for the page TSconfig. +Overriding FlexForm settings +============================ + +It is possible to override some :ref:`FlexForm ` settings via TSconfig. You can find +some examples for this in the reference section, for example on the +:ref:`TCEFORM ` page. + +The syntax is similar as when overriding TCA settings, but a little different. + + Example =======