-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Correct indentation, * add names for confvals releases: main, 12.4
- Loading branch information
Showing
5 changed files
with
98 additions
and
98 deletions.
There are no files selected for viewing
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
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
56 changes: 28 additions & 28 deletions
56
Documentation/ColumnsConfig/Type/Color/Properties/Nullable.rst
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 |
---|---|---|
@@ -1,39 +1,39 @@ | ||
.. include:: /Includes.rst.txt | ||
.. _columns-color-properties-nullable: | ||
.. include:: /Includes.rst.txt | ||
.. _columns-color-properties-nullable: | ||
|
||
======== | ||
nullable | ||
======== | ||
|
||
.. versionchanged:: 12.0 | ||
This option was introduced to replace the TCA :php:`eval` option with | ||
:php:`null` as value. | ||
.. versionchanged:: 12.0 | ||
This option was introduced to replace the TCA :php:`eval` option with | ||
:php:`null` as value. | ||
|
||
.. confval:: nullable (type => color) | ||
.. confval:: nullable | ||
:name: color-nullable | ||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config'] | ||
:type: boolean | ||
:Default: false | ||
:Scope: Proc | ||
|
||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config'] | ||
:type: boolean | ||
:Default: false | ||
:Scope: Proc | ||
If set to true, a checkbox will appear, which by default deactivates the | ||
field. In the deactivated state the field is saved as :sql:`NULL` in the | ||
database. By activating the checkbox it is possible to set a value. | ||
If nothing is entered into the field, then an empty string will be saved and not a :sql:`NULL`. | ||
|
||
If set to true, a checkbox will appear, which by default deactivates the | ||
field. In the deactivated state the field is saved as :sql:`NULL` in the | ||
database. By activating the checkbox it is possible to set a value. | ||
If nothing is entered into the field, then an empty string will be saved and not a :sql:`NULL`. | ||
|
||
The database field must allow the :sql:`NULL` value. | ||
The database field must allow the :sql:`NULL` value. | ||
|
||
Example: | ||
|
||
.. code-block:: php | ||
:caption: EXT:some_extension/Configuration/TCA/tx_sometable.php | ||
'columns' => [ | ||
'nullable_column' => [ | ||
'title' => 'A nullable field', | ||
'config' => [ | ||
'type' => 'color', | ||
'nullable' => true, | ||
], | ||
], | ||
], | ||
.. code-block:: php | ||
:caption: EXT:some_extension/Configuration/TCA/tx_sometable.php | ||
'columns' => [ | ||
'nullable_column' => [ | ||
'title' => 'A nullable field', | ||
'config' => [ | ||
'type' => 'color', | ||
'nullable' => true, | ||
], | ||
], | ||
], |
20 changes: 10 additions & 10 deletions
20
Documentation/ColumnsConfig/Type/Color/Properties/Size.rst
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
.. include:: /Includes.rst.txt | ||
.. _columns-color-properties-size: | ||
.. include:: /Includes.rst.txt | ||
.. _columns-color-properties-size: | ||
|
||
==== | ||
size | ||
==== | ||
|
||
.. confval:: size (type => color) | ||
.. confval:: size | ||
:name: color-size | ||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config'] | ||
:type: integer | ||
:Scope: Display | ||
|
||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config'] | ||
:type: integer | ||
:Scope: Display | ||
|
||
Abstract value for the width of the :code:`<input>` field. To set the | ||
field to the full width of the form area, use the value 50. Minimum is 10. | ||
Default is 30. | ||
Abstract value for the width of the :code:`<input>` field. To set the | ||
field to the full width of the form area, use the value 50. Minimum is 10. | ||
Default is 30. |
62 changes: 31 additions & 31 deletions
62
Documentation/ColumnsConfig/Type/Color/Properties/ValuePicker.rst
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 |
---|---|---|
@@ -1,44 +1,44 @@ | ||
.. include:: /Includes.rst.txt | ||
.. _columns-color-properties-valuePicker: | ||
.. include:: /Includes.rst.txt | ||
.. _columns-color-properties-valuePicker: | ||
|
||
=========== | ||
valuePicker | ||
=========== | ||
|
||
.. confval:: valuePicker (type => color) | ||
.. confval:: valuePicker | ||
:name: color-valuePicker | ||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config'] | ||
:type: array | ||
:Scope: Display | ||
|
||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config'] | ||
:type: array | ||
:Scope: Display | ||
Renders a select box with static values next to the input field. When a | ||
value is selected in the box, the value is transferred to the field. Keys: | ||
|
||
Renders a select box with static values next to the input field. When a | ||
value is selected in the box, the value is transferred to the field. Keys: | ||
items (array) | ||
An array with selectable items. Each item is an array with the first value being the label in the select | ||
drop-down (LLL reference possible) the second being the hex-value transferred to the input field. | ||
The value should have exactly 7 characters, as this is the maximum for a hex-value. | ||
|
||
items (array) | ||
An array with selectable items. Each item is an array with the first value being the label in the select | ||
drop-down (LLL reference possible) the second being the hex-value transferred to the input field. | ||
The value should have exactly 7 characters, as this is the maximum for a hex-value. | ||
.. note:: | ||
|
||
.. note:: | ||
|
||
The :php:`valuePicker` allows to define default color codes via :php:`items` | ||
for a TCA type :php:`color` field. | ||
The :php:`valuePicker` allows to define default color codes via :php:`items` | ||
for a TCA type :php:`color` field. | ||
|
||
Example | ||
======= | ||
|
||
.. code-block:: php | ||
'a_color_field' => [ | ||
'label' => 'Color field', | ||
'config' => [ | ||
'type' => 'color', | ||
'required' => true, | ||
'size' => 20, | ||
'valuePicker' => [ | ||
'items' => [ | ||
['typo3 orange', '#FF8700'], | ||
], | ||
], | ||
] | ||
] | ||
.. code-block:: php | ||
'a_color_field' => [ | ||
'label' => 'Color field', | ||
'config' => [ | ||
'type' => 'color', | ||
'required' => true, | ||
'size' => 20, | ||
'valuePicker' => [ | ||
'items' => [ | ||
['typo3 orange', '#FF8700'], | ||
], | ||
], | ||
], | ||
], |