This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:create:placeholders [03.02.2015 14:41] – admin | en:create:placeholders [21.04.2024 20:21] (current) – admin | ||
---|---|---|---|
Line 32: | Line 32: | ||
</ | </ | ||
- | The PHP function '' | + | In addition, there are some predefined placeholders |
===== Placeholders and Filters ===== | ===== Placeholders and Filters ===== | ||
Line 68: | Line 67: | ||
The following placeholders are automatically available: these IDs are __not__ allowed to be used for user-defined placeholders. The content of the placeholders can be called up for further use by using the PHP function (see column on the right). | The following placeholders are automatically available: these IDs are __not__ allowed to be used for user-defined placeholders. The content of the placeholders can be called up for further use by using the PHP function (see column on the right). | ||
- | ^ID^Description^Variable in Data^PHP Function^ | + | ^Placeholder^Description^Variable in Data^PHP Function^ |
+ | |'' | ||
|'' | |'' | ||
- | |'' | + | |'' |
|'' | |'' | ||
|'' | |'' | ||
+ | '' | ||
+ | |'' | ||
+ | |||
+ | The following placeholders are available in some (not yet all) error messages, which can be customized under **Text Elements and Labels**. If the affected question has no number, the placeholder is left blank (removed). | ||
+ | |||
+ | ^Placeholder^Description^Example^Example^ | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |||
+ | |||
+ | |||
+ | The following placeholders are available within an item or option (e.g., in the item text). The numbering helps, e.g., to give randomly rotated options continuous numbers. | ||
+ | |||
+ | ^Placeholder^Description^Example^ | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
The following placeholders are designated for use exclusively in the HTML template of a layout. | The following placeholders are designated for use exclusively in the HTML template of a layout. | ||
- | ^ID^Description^ | + | ^Placeholder^Description^ |
|'' | |'' | ||
|'' | |'' | ||
Line 88: | Line 109: | ||
If you are using customized placeholders, | If you are using customized placeholders, | ||
- | * A character must follow directly after the first percentage sign ('' | + | * A character must follow directly after the first percentage sign ('' |
* No spaces before the closing percentage sign. | * No spaces before the closing percentage sign. | ||
* No other percentage signs can be written between the percentage signs ('' | * No other percentage signs can be written between the percentage signs ('' | ||
- | * The placeholder ID between the percentage signs can be a maximum of 64 characters. | + | * The placeholder ID between the percentage signs |
+ | * must contain at least 3 characters ('' | ||
+ | * can be a maximum of 64 characters. | ||
* Letters A-Z (upper-case or lower-case), | * Letters A-Z (upper-case or lower-case), | ||
* There is a strict distinction between upper and lower case in placeholders: | * There is a strict distinction between upper and lower case in placeholders: |