DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Default rendering

A default rendering can be defined for each element type. The static template provided with the extension contains the following:

plugin.tx_templatedisplay {
        defaultRendering {
                richtext.parseFunc < lib.parseFunc_RTE
        }
}

This configuration copies the RTE parseFunc into the parseFunc for the rich text-type element, making possible to render correctly RTE- enabled fields. Here's an example configuration:

plugin.tx_templatedisplay {
        defaultRendering {
                text.wrap = <span class=”text”>|</span>
        }
}

This would wrap a span tag with a “text” class around every text-type element rendered by Template Display.