|
1 | | -.. include:: /Includes.rst.txt |
2 | | -.. index:: User settings; Columns |
3 | | -.. _user-settings-columns: |
| 1 | +.. include:: /Includes.rst.txt |
| 2 | +.. index:: User settings; Columns |
| 3 | +.. _user-settings-columns: |
4 | 4 |
|
5 | 5 | =================== |
6 | 6 | ['columns'] Section |
|
9 | 9 | This contains the configuration array for single fields in the user |
10 | 10 | settings. This array allows the following configurations: |
11 | 11 |
|
12 | | -.. t3-field-list-table:: |
13 | | - :header-rows: 1 |
| 12 | +.. confval-menu:: |
| 13 | + :name: user-settings |
| 14 | + :display: table |
| 15 | + :type: |
14 | 16 |
|
15 | | - - :Key,20: Key |
16 | | - :Data type,20: Data type |
17 | | - :Description,60: Description |
| 17 | + .. confval:: type |
| 18 | + :name: user-settings-type |
| 19 | + :type: string |
| 20 | + :Allowed values: `button`, `check`, `password`, `select`, `text`, `user` |
18 | 21 |
|
| 22 | + Defines the type of the input field |
19 | 23 |
|
20 | | - - :Key: |
21 | | - type |
22 | | - :Data type: |
23 | | - string |
24 | | - :Description: |
25 | | - Defines the type of the input field |
| 24 | + If `type == user`, then you need to define your own `renderType` too. |
| 25 | + If selectable items shall be filled by your own function, then you can use `type == select` and `itemsProcFunc`. |
26 | 26 |
|
27 | | - If `type == user`, then you need to define your own `renderType` too. |
28 | | - If selectable items shall be filled by your own function, then you can use `type == select` and `itemsProcFunc`. |
| 27 | + **Example:** |
29 | 28 |
|
30 | | - **Example:** |
| 29 | + .. code-block:: php |
31 | 30 |
|
32 | | - .. code-block:: php |
33 | | -
|
34 | | - 'startModule' => array( |
| 31 | + 'startModule' => [ |
35 | 32 | 'type' => 'select', |
36 | 33 | 'itemsProcFunc' => 'TYPO3\\CMS\\Setup\\Controller\\SetupModuleController->renderStartModuleSelect', |
37 | 34 | 'label' => 'LLL:EXT:setup/mod/locallang.xlf:startModule', |
38 | | - ), |
39 | | -
|
40 | | - Allowed values: button, check, password, select, text, user |
41 | | - |
42 | | - |
43 | | - - :Key: |
44 | | - label |
45 | | - :Data type: |
46 | | - string |
47 | | - :Description: |
48 | | - Label for the input field, should be a pointer to a localized |
49 | | - label using the :code:`LLL:` syntax. |
50 | | - |
51 | | - |
52 | | - - :Key: |
53 | | - buttonLabel |
54 | | - :Data type: |
55 | | - string |
56 | | - :Description: |
57 | | - Text of the button for type=button fields. |
58 | | - Should be a pointer to a localized label using the :code:`LLL:` syntax. |
59 | | - |
60 | | - |
61 | | - - :Key: |
62 | | - access |
63 | | - :Data type: |
64 | | - string |
65 | | - :Description: |
66 | | - Access control. At the moment only a admin-check is implemented |
67 | | - |
68 | | - Allowed values: admin |
69 | | - |
70 | | - |
71 | | - - :Key: |
72 | | - table |
73 | | - :Data type: |
74 | | - string |
75 | | - :Description: |
76 | | - If the user setting is saved in a DB table, this property sets the |
77 | | - table. At the moment only "be\_users" is implemented. |
78 | | - |
79 | | - Allowed values: be\_users |
80 | | - |
81 | | - |
82 | | - - :Key: |
83 | | - items |
84 | | - :Data type: |
85 | | - array |
86 | | - :Description: |
87 | | - List of items for type=select fields. This should be a simple associative |
88 | | - array with key-value pairs. |
89 | | - |
90 | | - |
91 | | - - :Key: |
92 | | - itemsProcFunc |
93 | | - :Data type: |
94 | | - array |
95 | | - :Description: |
96 | | - Defines an external method for rendering items of select-type fields. |
97 | | - Contrary to what is done with the TCA you have to render the <select> |
98 | | - tag too. Only used by type=select. |
99 | | - |
100 | | - Use the usual class->method syntax. |
101 | | - |
102 | | - |
103 | | - - :Key: |
104 | | - clickData.eventName |
105 | | - :Data type: |
106 | | - string |
107 | | - :Description: |
108 | | - JavaScript event triggered on click. |
109 | | - |
110 | | - |
111 | | - - :Key: |
112 | | - confirm |
113 | | - :Data type: |
114 | | - boolean |
115 | | - :Description: |
116 | | - If true, JavaScript confirmation dialog is displayed. |
117 | | - |
118 | | - - :Key: |
119 | | - confirmData.eventName |
120 | | - :Data type: |
121 | | - string |
122 | | - :Description: |
123 | | - JavaScript event triggered on confirmation. |
124 | | - |
125 | | - - :Key: |
126 | | - confirmData.message |
127 | | - :Data type: |
128 | | - string |
129 | | - :Description: |
130 | | - Confirmation message. |
| 35 | + ], |
| 36 | +
|
| 37 | + .. confval:: label |
| 38 | + :name: user-settings-label |
| 39 | + :type: string |
| 40 | + |
| 41 | + Label for the input field, should be a pointer to a localized |
| 42 | + label using the :code:`LLL:` syntax. |
| 43 | + |
| 44 | + |
| 45 | + .. confval:: buttonLabel |
| 46 | + :name: user-settings-buttonLabel |
| 47 | + :type: string |
| 48 | + |
| 49 | + Text of the button for type=button fields. |
| 50 | + Should be a pointer to a localized label using the :code:`LLL:` syntax. |
| 51 | + |
| 52 | + .. confval:: access |
| 53 | + :name: user-settings-access |
| 54 | + :type: string |
| 55 | + :Allowed values: `admin` |
| 56 | + |
| 57 | + Access control. At the moment only a admin-check is implemented |
| 58 | + |
| 59 | + .. confval:: table |
| 60 | + :name: user-settings-table |
| 61 | + :type: stringstring |
| 62 | + :Allowed values: `be_users` |
| 63 | + |
| 64 | + If the user setting is saved in a DB table, this property sets the |
| 65 | + table. At the moment only `be_users` is implemented. |
| 66 | + |
| 67 | + .. confval:: items |
| 68 | + :name: user-settings-items |
| 69 | + :type: array |
| 70 | + |
| 71 | + List of items for type=select fields. This should be a simple associative |
| 72 | + array with key-value pairs. |
| 73 | + |
| 74 | + .. confval:: itemsProcFunc |
| 75 | + :name: user-settings-itemsProcFunc |
| 76 | + :type: array |
| 77 | + |
| 78 | + Defines an external method for rendering items of select-type fields. |
| 79 | + Contrary to what is done with the TCA you have to render the <select> |
| 80 | + tag too. Only used by type=select. |
| 81 | + |
| 82 | + Use the usual class->method syntax. |
| 83 | + |
| 84 | + .. confval:: clickData.eventName |
| 85 | + :name: user-settings-clickData-eventName |
| 86 | + :type: string |
| 87 | + |
| 88 | + JavaScript event triggered on click. |
| 89 | + |
| 90 | + .. confval:: confirm |
| 91 | + :name: user-settings-confirm |
| 92 | + :type: boolean |
| 93 | + |
| 94 | + If true, JavaScript confirmation dialog is displayed. |
| 95 | + |
| 96 | + .. confval:: confirmData.eventName |
| 97 | + :name: user-settings-confirmData-eventName |
| 98 | + :type: string |
| 99 | + |
| 100 | + JavaScript event triggered on confirmation. |
| 101 | + |
| 102 | + .. confval:: confirmData.message |
| 103 | + :name: user-settings-confirmData-message |
| 104 | + :type: string |
| 105 | + |
| 106 | + Confirmation message. |
0 commit comments