-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Merge properties to selectCheckbox (#1142)
Releases: main, 12.4
- Loading branch information
Showing
32 changed files
with
774 additions
and
124 deletions.
There are no files selected for viewing
26 changes: 0 additions & 26 deletions
26
Documentation/ColumnsConfig/Type/Select/CheckBox/Examples.rst
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 0 additions & 49 deletions
49
Documentation/ColumnsConfig/Type/Select/CheckBox/Properties.rst
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
...tation/ColumnsConfig/Type/Select/CheckBox/_Properties/_AllowNonIdValues.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.. confval:: allowNonIdValues | ||
:name: select-checkbox-allowNonIdValues | ||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config'] | ||
:type: boolean | ||
:Scope: Proc. | ||
:RenderType: all | ||
|
||
Only useful if :confval:`select-checkbox-foreign-table` is enabled. | ||
|
||
If set, then values which are not integer ids will be allowed. May be needed | ||
if you use itemsProcFunc or just enter additional items in the items array | ||
to produce some string-value elements for the list. | ||
|
||
.. note:: | ||
If you mix non-database relations with database relations like this, DO | ||
NOT use integers for values and DO NOT use "\_" (underscore) in values | ||
either! Will not work if you also use "MM" relations! |
24 changes: 24 additions & 0 deletions
24
Documentation/ColumnsConfig/Type/Select/CheckBox/_Properties/_Appearance.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
.. _columns-select-properties-appearance-selectCheckBox: | ||
|
||
.. confval:: appearance | ||
:name: select-check-appearance | ||
|
||
.. confval:: selectCheckBox | ||
:name: select-appearance-selectCheckBox | ||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['appearance']['selectCheckBox'] | ||
:type: array | ||
:Scope: Display | ||
|
||
Options for refining the appearance of `selectCheckBox` fields. | ||
|
||
expandAll (boolean) | ||
If set, all select groups are initially expanded. | ||
|
||
.. _tca_example_select_checkbox_5: | ||
|
||
.. rubric:: Example: Select checkbox, all divs expanded | ||
|
||
.. include:: /Images/Rst/SelectCheckbox5.rst.txt | ||
|
||
.. include:: /CodeSnippets/SelectCheckbox5.rst.txt |
34 changes: 34 additions & 0 deletions
34
Documentation/ColumnsConfig/Type/Select/CheckBox/_Properties/_AuthMode.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. _columns-select-checkbox-properties-authmode: | ||
|
||
.. confval:: authMode | ||
:name: select-checkbox-authMode | ||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config'] | ||
:type: string (keyword) | ||
:Scope: Display / Proc. | ||
:RenderType: all | ||
|
||
.. versionchanged:: 12.0 | ||
The only valid value for TCA config option :php:`authMode` is now :php:`explicitAllow`. | ||
The values :php:`explicitDeny` and :php:`individual` are obsolete and no longer evaluated. | ||
|
||
Authorization mode for the selector box. The only possible option is: | ||
|
||
explicitAllow | ||
All static values from the "items" array of the selector box will be added to a matrix in the backend user | ||
configuration where a value must be explicitly selected if a user (other than admin) is allowed to use it!) | ||
|
||
.. rubric:: Migration: Using authMode='explicitDeny' | ||
|
||
The "deny list" approach for single field values has been removed, the only allowed option | ||
for :php:`authMode` is :php:`explicitAllow`. Extensions using config value :php:`explicitDeny` | ||
should be adapted to switch to :php:`explicitAllow` instead. The upgrade wizard | ||
"Migrate backend groups "explicit_allowdeny" field to simplified format." that transfers | ||
existing :sql:`be_groups` rows to the new format, **drops** any :sql:`DENY` fields and instructs | ||
admins to not set new access rights of affected backend groups. | ||
|
||
.. rubric:: Migration: Using authMode='individual' | ||
|
||
Handling of :php:`authMode` being set to :php:`individual` has been fully dropped. | ||
The Core provides no alternative. This has been an obscure setting ever since and there is no | ||
direct migration. Extensions that rely on this handling need to find a substitution based on | ||
Core hooks, Core events or other existing Core API functionality. |
17 changes: 17 additions & 0 deletions
17
...ntation/ColumnsConfig/Type/Select/CheckBox/_Properties/_AuthModeEnforce.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
.. _columns-select-checkbox-properties-authmode-enforce: | ||
|
||
.. versionchanged:: 12.0 | ||
Handling of TCA config option :php:`authMode_enforce` has been removed. | ||
|
||
Migration: Using authMode_enforce='strict' | ||
|
||
Extensions with select fields using :php:`authMode` previously had different handling | ||
if :php:`authMode_enforce => 'strict'` has been set: Let us say an editor accesses a record | ||
with an :php:`authMode` field being set to a value it has no access to. With :php:`authMode_enforce` | ||
**not** being set to :php:`strict`, the editor was still able to edit the record and set the value | ||
to something it had access to. With :php:`authMode_enforce` being set to :php:`strict`, the editor | ||
was not allowed to access the record. This has been streamlined: The backend interface no longer | ||
renders those records for the editor and an "access denied" message is rendered instead. To | ||
prevent this, a group this editor is member of needs to be adapted to allow access to this | ||
particular value in the "Explicitly allow field values" (:sql:`explicit_allowdeny`) field. |
17 changes: 17 additions & 0 deletions
17
Documentation/ColumnsConfig/Type/Select/CheckBox/_Properties/_AutoSizeMax.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
.. confval:: autoSizeMax | ||
:name: select-checkbox-autoSizeMax | ||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config'] | ||
:type: integer | ||
:Scope: Display | ||
|
||
The maximum size (height) of the select field. | ||
|
||
The size of the select field will be automatically adjusted based on | ||
the number of selected items. The select field will never be smaller than | ||
the specified :confval:`size <select-checkbox-size>` and never larger than | ||
the value of `autoSizeMax`. | ||
|
||
.. note:: | ||
Only has an effect if :confval:`maxitems <select-checkbox-maxitems>` is | ||
greater than 1. |
23 changes: 23 additions & 0 deletions
23
Documentation/ColumnsConfig/Type/Select/CheckBox/_Properties/_Behaviour.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.. confval:: behaviour | ||
:name: select-checkbox-behaviour | ||
|
||
.. confval:: allowLanguageSynchronization | ||
:type: boolean | ||
:name: select-checkbox-behaviour-allowLanguageSynchronization | ||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config']['behaviour']['allowLanguageSynchronization'] | ||
:Scope: Proc. | ||
:default: false | ||
|
||
Allows an editor to select in a localized record whether the value is copied | ||
over from default or source language record, or if the field has an own value | ||
in the localization. If set to true and if the table supports localization | ||
and if a localized record is edited, this setting enables FieldWizard | ||
:ref:`LocalizationStateSelector <columns-input-properties-fieldWizard-localizationStateSelector>`: | ||
Two or three radio buttons shown below the field input. The state of this is | ||
stored in a json encoded array in the database table called :code:`l10n_state`. | ||
It tells the DataHandler which fields of the localization records should be kept | ||
in sync if the underlying default or source record changes. | ||
|
||
.. literalinclude:: _Snippets/_AllowLanguageSynchronization.php | ||
:caption: EXT:my_extension/Configuration/TCA/Overrides/someTable.php | ||
|
25 changes: 25 additions & 0 deletions
25
...mentation/ColumnsConfig/Type/Select/CheckBox/_Properties/_DbFieldLength.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
.. confval:: dbFieldLength | ||
:name: select-checkbox-dbFieldLength | ||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config'] | ||
:type: integer | ||
:Default: 255 | ||
:Scope: Proc. | ||
|
||
.. versionadded:: 13.0 | ||
As TYPO3 takes care of | ||
:ref:`generating the according database field <t3coreapi:auto-generated-db-structure>` | ||
for `select` fields since TYPO3 v13, a developer can adjust the length | ||
of the database field with this option in TCA directly. | ||
|
||
The TCA config option :php:`dbFieldLength` contains an integer value | ||
that is applied to :sql:`varchar` fields (not :sql:`text`) and defines the | ||
length of the database field. It will not be respected for fields that | ||
resolve to an integer type. Developers who wish to optimize field length can | ||
use :php:`dbFieldLength` for :php:`type=select` fields to increase or | ||
decrease the default length. | ||
|
||
.. rubric:: Example: Increase the dbFieldLength for a select field | ||
|
||
.. literalinclude:: _Snippets/_DbFieldLength.php | ||
:caption: Excerpt from EXT:my_extension/Configuration/TCA/myextension_domain_model_mytable.php |
11 changes: 11 additions & 0 deletions
11
Documentation/ColumnsConfig/Type/Select/CheckBox/_Properties/_Default.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. _columns-select-checkbox-properties-default: | ||
|
||
.. confval:: default | ||
:name: select-checkbox-default | ||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config'] | ||
:type: string | ||
:Scope: Display / Proc. | ||
:RenderType: all | ||
|
||
Default value set if a new record is created. If empty, the first element in | ||
the items array is selected. |
12 changes: 12 additions & 0 deletions
12
...Config/Type/Select/CheckBox/_Properties/_DisableNonMatchingValueElement.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.. _columns-select-checkbox-properties-disablenomatchingvalueelement: | ||
|
||
.. confval:: disableNoMatchingValueElement | ||
:name: select-checkbox-disableNoMatchingValueElement | ||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config'] | ||
:type: boolean | ||
:Scope: Display | ||
:RenderType: all | ||
|
||
If set, then no element is inserted if the current value does not match | ||
any of the existing elements. A corresponding options is also found in Page | ||
TSconfig. |
Oops, something went wrong.