Content - News Menu - Ressources Menu - Sitemap - Share your code - Code library - Reference
Formidable is part of the TYPO3 Project and is supported by Ameos
Takes a template file as an input and inserts the rendered elements by substituting markers like {my_marker} with the corresponding HTML.
Each renderlet renders it's full layout ; the produced HTML will be accessible using the syntax {my_renderlet_name} (the renderlet's name wrapped in curly braces).
Each {marker} might have sub-properties available. You are able to display them selectively using the dotted-notation {marker.my_sub_property}.
Each {marker} also defines template-methods you may use inside your template. For instance, to list all the sub-properties available on a {marker}, use the debug method: {marker.debug()}.
This is called channelled-templating; some examples below demonstrate the concept.
| path | data type | req | def | uobj | description |
|---|---|---|---|---|---|
| template/ | |||||
| template/name | string; file-path | X | X | The path to your HTML template file. May be an EXT-prefixed path. | |
| template/subpart | string | X | X |
The template marker to cut, inside the template file.
Example:
| |
| template/errorTag | string | X |
This is the name of the tag that Formidable will use to store the error-messages generated by validators. It will be available for use in your template.
Example:
If you want to wrap the error messages in a nice HTML structure that has to show up only when there are errors to display, you may use the .cssdisplay property of the error-tag. In our case, To know what is available at template-level on a marker, use the debug() method, like this:
| ||
| template/clearMarkersNotUsed | boolean | true | True, the unreplaced {tags} will be deleted before display. False, they won't. | ||
| html | string | X | If you don't want to create a template file, you may define the HTML in a CDATA inside the /html property. | ||
| beforeDisplay | runneable | X |
Allows to alter the renderer HTML parts before passing them to the template
| ||
Provided by Ameos