Content - News Menu - Ressources Menu - Sitemap - Share your code - Code library - Reference
Formidable is part of the TYPO3 Project and is supported by Ameos
This property-reference is applicable to all types of renderlets.
You can find here a short reference about all the common properties that can be used each renderlet.
| path | data type | req | def | uobj | description |
|---|---|---|---|---|---|
| name | string | X | Identifier for the renderlet; unique accross all the application. | ||
| label | string |
Label, displayed close to the renderlet in default rendering. Can be a litteral string, or a reference to a locallang string. Example:
| |||
| title | string | Mapped to the title HTML property. | |||
| class | string |
CSS class definition that will be encapsulated with the corresponding HTML class-attribute in your renderlet.
Example:
| |||
| style | string |
CSS style definition that will be encapsulated with the corresponding HTML style-attribute in your renderlet. Example:
| |||
| custom | string |
Will be inserted as-is inside the renderlet-tag. Example:
| |||
| wrap | string |
Takes a piped wrap-string like TYPO3 likes it. Wraps the renderlet with the given string. Example:
| |||
| defaultWrap | boolean | true | If false, the renderlet will not be automatically wrapped in the default <div> tag. | ||
| recombine | string |
Recombine offers a chance to reassemble all the subparts constituting a renderlet in a different order. Example, recombining a renderlet:TEXT :
This is deprecated now, and avantageously replaced by the channeled-template technique. | |||
| process | boolean | true | X | If true, renderlet will be processed by Formidable. False, it will be skipped. | |
| readOnly | boolean | false | If true, the renderlet will not be editable. | ||
| renderOnly | boolean | false |
If true, the renderlet will be processed and rendered, but the datahandler will skip it. Useful when you want to render a form-field that should not be inserted in the database. | ||
| activeListable | boolean | false | If true, the renderlet will be rendered as an editable form field when in lists (where, by default, renderlets are readonly). | ||
| dependsOn | string | Absolute name of renderlet, onto whom the current renderlet depends. For instance, if a listbox B depends on listbox A, B should declare dependsOn='A'. | |||
| hideIfDependancyEmpty | boolean | false | If true, the renderlet will be rendered as hidden (via CSS display: none) if it's dependancy is empty (as defined in /dependsOn). | ||
| validateForDraft | boolean | false | If true, the renderlet will have to validate even if the current form is submitted as DRAFT. | ||
| hideIfJs | boolean | false | If true, the renderlet will be rendered as hidden if Javascript is active on the client browser. | ||
| displayOnlyIfJs | boolean | false | If true, renderlet will be rendered as hidden if Javascript is not active on the client browser. | ||
| i18n/ : Placeholder for translation settings at renderlet level. | |||||
| i18n/translate | boolean | true | If false, the renderlet will not be translatable (used in conjunction with /datahandler/i18n/use=true). | ||
| i18n/hideIfNotTranslated | boolean | false | If true and not translated in the current language, renderlet will be rendered as hidden (used in conjunction with /datahandler/i18n/use=true). | ||
| data/ | |||||
| data/value | string | X | Always overrides the renderlet's value. | ||
| data/defaultValue | string | X | Value of the renderlet when displaying form for the first time, and when not editing a record from the database (when in creation mode). | ||
| data/items : This property is used only when we have a control with multiple values. | |||||
| data/items/fromTCA | boolean | false | If true, Formidable will look for items in the TCA definition for the table as defined in /datahandler/tablename (if datahandler of type DB), with a match on renderlet's name = TCA column name. | ||
| data/items/item | |||||
| data/items/item/caption | string | X | Caption for the renderlet's item. Can be an LLL reference. | ||
| data/items/item/value | string | X | Value for the renderlet's item. | ||
| search/ : This section is available when the renderlet has a renderlet:SEARCHFORM in his ancestors. | |||||
| search/onFields | string | X |
Comma-separated list of columns to search on in the database. If several column names are given, Formidable will perform the search in the several columns. Note that when dealing with JOINt SQL datasources, you may as well provide column names prefixed by their table name. | ||
| search/mode | string | X |
One of :
startswith: search only records starting with the posted value. With /search/onFields set to "title, keywords", the resulting SQL-clause will look like:
orlike: same as startswith, but this time the LIKE clause will not restrict the lookup to the start of the column. With /search/onFields set to "title, keywords", the resulting SQL-clause will look like:
googlelike: Formidable will explode the searched value on spaces, "AND" and the "+" (plus sign), and will look for values containing all the given substrings. With /search/onFields set to "title, keywords", the resulting SQL-clause will look like:
| ||
| search/overrideSql | string | X |
Redefines the portion of SQL given by this renderlet to the SEARCHFORM to override the default SQL search clause. Example, if checkbox checked, we will look only for christmas-related records:
| ||
| validators/ : A collection of validators. | |||||
| events/ :
Events can be set on a renderlet. There are 3 type of events : server, ajax, client. Example
http://formidable.typo3.ug/features/event-handling-part-2.html | |||||
| events/runat | string | X | Type of event (serveur, client , ajax) | ||
| events/cache | boolean | true |
The default config for ajax events is to cache results return by server, so that when the same event is fired again, no ajax request is needed to execute the majix tasks. For desactivate caching, set the tag at false. | ||
| events/params | string | Parameters of the event. | |||
| events/syncvalue | boolean | false | If true, the value of renderlets are updated. | ||
Provided by Ameos
TODO