Author Topic

Peter Putzer

Tuesday 16 December 2008 1:36:04 am

Comment48542

If anyone is still interested, I whipped up an extension yesterday that uses the "Alias" feature to replace the default XHTMLOutputHandler for ezxmltext. Unfortunately, I don't see a way to get the "view" parameter from ezxmltext.tpl to the ezxmtags/*.tpl, so I can't add an override key for it.

However, if you use

{$node.data_map.MY_ATTRIBUTE.content.output.output_text}

directly in your node view templates, you can simulate the "view" parameter by calling

{$node.data_map.MY_ATTRIBUTE.content.output.output_text_VIEW}

instead.

As far as I can see, there are no sideeffects and you can define as many "views" as you like (via ezxml.ini). The new override key for ezxmltags is called "attribute_view_mode". I hope I'll be able to dress up the extension for publishing tonight. So, tell me if you're interested :-)

Accessible website starting from eZ publish 3.0 (currently: 4.1.0): http://pluspunkt.at