Skip to content

Commit

Permalink
Use myext_pi1 instead of my_ext_pi1
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sypets authored and github-actions[bot] committed Dec 2, 2023
1 parent ce81718 commit 5d169c9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 22 deletions.
44 changes: 22 additions & 22 deletions Documentation/PageTsconfig/TceForm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The `[dataStructureKey]` represents the key of a FlexForm in
:php:`$GLOBALS['TCA'][<tableName>]['columns'][<field>]['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 <t3tca:columns-flex-ds-pointer>` of the TCA reference for details.

Some properties apply to whole FlexForm sheets, their property path is
Expand Down Expand Up @@ -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.

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

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

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

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

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

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

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

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

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

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

Expand All @@ -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.

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

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

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

Expand All @@ -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.

Expand All @@ -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.

Expand All @@ -775,17 +775,17 @@ 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.

:aspect:`Example`
.. 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
}
Expand Down
10 changes: 10 additions & 0 deletions Documentation/UsingSetting/PageTSconfig.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,16 @@ The TypoScript syntax to
:ref:`modify <t3coreapi:typoscript-syntax-syntax-value-modification>` values
can also be used for the page TSconfig.

Overriding Flexform settings
============================

It is possible to override some FlexForm settings via TSconfig. You can find
some examples for this in the reference section, for example on the
:ref:`TCEFORM <tceform>` page.

The syntax is similar as when overriding TCA settings, but a little different:



Example
=======
Expand Down

0 comments on commit 5d169c9

Please sign in to comment.