confval
Permalink to confval: rendertest:confval-case-array.
| Name | Type | Default | Possible |
|---|---|---|---|
| shy | Happy new year, Sophie! | ||
| align | left | left | center | right | |
| boolean | 1 | 0 | ||
| boolean | 1 | 0 | ||
| case | |||
| array |
Summary
.. confval:: is the directive.
:confval: is a text role to create a reference to the description.
Demo 1
Source:
.. confval:: mr_pommeroy
:Default: Happy new year, Sophie!
:required: false
:type: shy
Participant of Miss Sophie's birthday party.
Result:
mr_pommeroy
-
- Type
- shy
- Default
- Happy new year, Sophie!
Participant of Miss Sophie's birthday party.
You can easily link to the description of a 'confval' by means of the
:confval: text role. Example: Here is a link to mr_pommeroy.
Demo 2
Adapted from the TypoScript Reference Manual:
align
-
- Type
- align
- Required
true
- Default
- left
- Possible
- left | center | right
Decides about alignment.
Example:
10.align = rightCopied!boolean
-
- Type
- boolean
- Possible
- 1 | 0
1 means TRUE and 0 means FALSE.
Everything else is evaluated to one of these values by PHP: Non-empty strings (except
0[zero]) are treated as TRUE, empty strings are evaluated to FALSE.Examples:
dummy.enable = 0 # false, preferred notation dummy.enable = 1 # true, preferred notation dummy.enable = # false, because the value is emptyCopied!boolean2
-
- Type
- boolean
- Possible
- 1 | 0
1 means TRUE and 0 means FALSE.
Everything else is evaluated to one of these values by PHP: Non-empty strings (except
0[zero]) are treated as TRUE, empty strings are evaluated to FALSE.Examples:
dummy.enable = 0 # false, preferred notation dummy.enable = 1 # true, preferred notation dummy.enable = #Copied!
case
-
- Type
- case
- Possible
-
Value Effect upperConvert all letters of the string to upper case lowerConvert all letters of the string to lower case capitalizeUppercase the first character of each word in the string ucfirstConvert the first letter of the string to upper case lcfirstConvert the first letter of the string to lower case uppercamelcaseConvert underscored upper_tocamel_ case UpperCamel Case lowercamelcaseConvert underscored lower_tocamel_ case lowerCamel Case
Do a case conversion.
Example code:
10 = TEXT 10.value = Hello world! 10.case = upperCopied!Result:
HELLO WORLD!Copied!
Demo 3 - addRecord
addRecord
-
- Type
- array
- Scope
- fieldControl
- Types
- group
Control button to directly add a related record. Leaves the current view and opens a new form to add a new record. On 'Save and close', the record is directly selected as referenced element in the
type='group'field. If multiple tables are allowed, the first table from the allowed list is selected, if no specifictableoption is given.Note
The add record control is disabled by default, enable it if needed. It is shown below the
edit popupcontrol if not changed bybeloworaftersettings.
Confval with name
addRecord
-
- Type
- array
- Scope
- fieldControl
- Types
- group
Lorem Ipsum
Link here with addRecord, link to the one above with addRecord.
Confval with noindex
addRecord
-
addRecord -
- Type
- array
- Scope
- fieldControl
- Types
- group
Lorem Ipsum
You cannot link here with the :confval: textrole, but only with :ref: to the
reference above it. Confval with noindex.