Thursday 24 February 2005 7:31:18 am
Hi, The new documentation (which we're currently working on) already covers this part.. let me copy & paste the info that you were looking for:
-----------8<--------------8<-------------------- Custom tags In addition to the default tags described above, the "XML field" datatype makes it possible to use custom tags. A custom tag can be used both as a block or an inline element. Custom tags must be specified using the "AvailableCustomTags[]" array in the [CustomTagSettings] block within an override for the "content.ini" configuration file. When the XML is rendered, the contents of a custom tag is replaced by a template. The name of the template must be specified using the "name" parameter. Usage:
<custom name="template_name" [custom_parameter='value' ...] >
The quick brown fox jumps over the lazy dog.
</custom>
The tag in the example above will be replaced by a template called "template_name.tpl". The template must be located inside the following directory within a design: "/templates/content/datatype/view/ezxmltags/". If not, an override template should be created. The contents of the tag will be available in the "$content" variable within the inserted template. The custom parameters are optional. When used, a custom parameter will be available as a template variable with the same name as it was specified in the tag itself. -----------8<--------------8<-------------------- Allman
|