[TYPO3-mvc] Use xml instead of html format

Steffen Müller typo3 at t3node.com
Mon Oct 18 10:11:33 CEST 2010


Hi.

On 18.10.2010 01:38 Henjo Hoeksma wrote:
> 
> it's probably something obvious, but how can I use a 'actionname.xml'
> instead of 'actionname.html' ?
> I tried setting the format using TS... and in my controller... I
> searched the list, the code but nevertheless it doesn't seem to be
> working...
> 

See link.action viewhelper in Fluid:
<f:link.action arguments="{object:data}" format="xml">Show data as
xml</f:link.action>

Equivalent can be found in the blog example extension.

-- 
cheers,
Steffen

TYPO3 Blog: http://www.t3node.com/
Microblog:  http://twitter.com/t3node



More information about the TYPO3-project-typo3v4mvc mailing list