-
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, 11.5
- Loading branch information
Showing
12 changed files
with
232 additions
and
232 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
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
32 changes: 16 additions & 16 deletions
32
Documentation/ColumnsConfig/Type/Check/Properties/Cols.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,35 +1,35 @@ | ||
.. include:: /Includes.rst.txt | ||
.. _columns-check-properties-cols: | ||
.. include:: /Includes.rst.txt | ||
.. _columns-check-properties-cols: | ||
|
||
==== | ||
cols | ||
==== | ||
|
||
.. confval:: cols | ||
.. confval:: cols | ||
:name: check-cols | ||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config'] | ||
:type: integer/string | ||
:Scope: Display | ||
|
||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config'] | ||
:type: integer/string | ||
:Scope: Display | ||
In how many columns the checkboxes will be shown. Makes sense only if the 'items' property is defining multiple | ||
checkboxes. | ||
|
||
In how many columns the checkboxes will be shown. Makes sense only if the 'items' property is defining multiple | ||
checkboxes. | ||
Allowed values are 1, 2, 3, ..., 31 or `inline`, 1 being default. If set to `inline` the checkboxes are | ||
"floating" and there will be as many in one row as fits to browser width. | ||
|
||
Allowed values are 1, 2, 3, ..., 31 or `inline`, 1 being default. If set to `inline` the checkboxes are | ||
"floating" and there will be as many in one row as fits to browser width. | ||
|
||
Note checkboxes will still wrap if browser width is not sufficient. | ||
Note checkboxes will still wrap if browser width is not sufficient. | ||
|
||
Examples | ||
======== | ||
|
||
Fixes columns | ||
------------- | ||
|
||
.. include:: /Images/Rst/Checkbox2.rst.txt | ||
.. include:: /CodeSnippets/Checkbox2.rst.txt | ||
.. include:: /Images/Rst/Checkbox2.rst.txt | ||
.. include:: /CodeSnippets/Checkbox2.rst.txt | ||
|
||
Inline columns | ||
-------------- | ||
|
||
.. include:: /Images/Rst/Checkbox16.rst.txt | ||
.. include:: /CodeSnippets/Checkbox16.rst.txt | ||
.. include:: /Images/Rst/Checkbox16.rst.txt | ||
.. include:: /CodeSnippets/Checkbox16.rst.txt |
72 changes: 36 additions & 36 deletions
72
Documentation/ColumnsConfig/Type/Check/Properties/Default.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,51 +1,51 @@ | ||
.. include:: /Includes.rst.txt | ||
.. _columns-check-properties-default: | ||
.. include:: /Includes.rst.txt | ||
.. _columns-check-properties-default: | ||
|
||
======= | ||
default | ||
======= | ||
|
||
.. confval:: default (type => check) | ||
|
||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config'] | ||
:type: integer | ||
:Scope: Display / Proc. | ||
|
||
The default value of the checkbox(es). | ||
|
||
Each bit of the decimal value corresponds to a checkbox. As an example, the | ||
value `5` enables the first and third checkbox. | ||
|
||
This is true even if there is only one checkbox, which then maps to the first | ||
bit (reading from right to left). | ||
|
||
+---------------+-----------------------+---------------------+ | ||
| decimal value | binary representation | selected checkboxes | | ||
+===============+=======================+=====================+ | ||
| 0 | 0000 0000 | none | | ||
+---------------+-----------------------+---------------------+ | ||
| 1 | 0000 0001 | first | | ||
+---------------+-----------------------+---------------------+ | ||
| 2 | 0000 0010 | second | | ||
+---------------+-----------------------+---------------------+ | ||
| 5 | 0000 0101 | first, third | | ||
+---------------+-----------------------+---------------------+ | ||
| 127 | 0111 1111 | the first seven | | ||
+---------------+-----------------------+---------------------+ | ||
|
||
To find out the right default decimal value, first start off by writing down | ||
the binary representation and set the desired bits at the appropriate | ||
position to 1. Then convert the binary number to decimal. You can either use | ||
a calculator with programmer mode or search online for "binary to decimal". | ||
.. confval:: default | ||
:name: check-default | ||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config'] | ||
:type: integer | ||
:Scope: Display / Proc. | ||
|
||
The default value of the checkbox(es). | ||
|
||
Each bit of the decimal value corresponds to a checkbox. As an example, the | ||
value `5` enables the first and third checkbox. | ||
|
||
This is true even if there is only one checkbox, which then maps to the first | ||
bit (reading from right to left). | ||
|
||
+---------------+-----------------------+---------------------+ | ||
| decimal value | binary representation | selected checkboxes | | ||
+===============+=======================+=====================+ | ||
| 0 | 0000 0000 | none | | ||
+---------------+-----------------------+---------------------+ | ||
| 1 | 0000 0001 | first | | ||
+---------------+-----------------------+---------------------+ | ||
| 2 | 0000 0010 | second | | ||
+---------------+-----------------------+---------------------+ | ||
| 5 | 0000 0101 | first, third | | ||
+---------------+-----------------------+---------------------+ | ||
| 127 | 0111 1111 | the first seven | | ||
+---------------+-----------------------+---------------------+ | ||
|
||
To find out the right default decimal value, first start off by writing down | ||
the binary representation and set the desired bits at the appropriate | ||
position to 1. Then convert the binary number to decimal. You can either use | ||
a calculator with programmer mode or search online for "binary to decimal". | ||
|
||
Examples | ||
======== | ||
|
||
Multiple checkboxes with a default value | ||
---------------------------------------- | ||
|
||
.. include:: /Images/Rst/Checkbox16.rst.txt | ||
.. include:: /Images/Rst/Checkbox16.rst.txt | ||
|
||
Here "Tu", the second bit, is active by default. | ||
|
||
.. include:: /CodeSnippets/Manual/CheckboxDefault.rst.txt | ||
.. include:: /CodeSnippets/Manual/CheckboxDefault.rst.txt |
38 changes: 19 additions & 19 deletions
38
Documentation/ColumnsConfig/Type/Check/Properties/Eval.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,34 +1,34 @@ | ||
.. include:: /Includes.rst.txt | ||
.. _columns-check-properties-eval: | ||
.. include:: /Includes.rst.txt | ||
.. _columns-check-properties-eval: | ||
|
||
==== | ||
eval | ||
==== | ||
|
||
.. confval:: eval (type => check) | ||
.. confval:: eval | ||
:name: check-eval | ||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config'] | ||
:type: string (list of keywords) | ||
:Scope: Proc. / Display | ||
|
||
:Path: $GLOBALS['TCA'][$table]['columns'][$field]['config'] | ||
:type: string (list of keywords) | ||
:Scope: Proc. / Display | ||
Configuration of field evaluation. | ||
|
||
Configuration of field evaluation. | ||
Keywords: | ||
|
||
Keywords: | ||
maximumRecordsChecked | ||
If this evaluation is defined, the maximum number of records from the same table that can have this box | ||
checked will be limited. If someone tries to check the box of a record beyond the allowed maximum, the | ||
box will be unchecked automatically upon saving. | ||
|
||
maximumRecordsChecked | ||
If this evaluation is defined, the maximum number of records from the same table that can have this box | ||
checked will be limited. If someone tries to check the box of a record beyond the allowed maximum, the | ||
box will be unchecked automatically upon saving. | ||
The actual limit is defined with the validation property :ref:`validation <columns-check-properties-validation>`. | ||
|
||
The actual limit is defined with the validation property :ref:`validation <columns-check-properties-validation>`. | ||
maximumRecordsCheckedInPid | ||
Similar to :code:`maximumRecordsChecked` but with the validation scope limited to records stored in the same page. | ||
|
||
maximumRecordsCheckedInPid | ||
Similar to :code:`maximumRecordsChecked` but with the validation scope limited to records stored in the same page. | ||
|
||
.. _tca_example_checkbox_7: | ||
.. _tca_example_checkbox_7: | ||
|
||
Examples | ||
======== | ||
|
||
.. include:: /Images/Rst/Checkbox7.rst.txt | ||
.. include:: /CodeSnippets/Checkbox7.rst.txt | ||
.. include:: /Images/Rst/Checkbox7.rst.txt | ||
.. include:: /CodeSnippets/Checkbox7.rst.txt |
Oops, something went wrong.