[TYPO3-mvc] Use xml instead of html format

Stefan Isak stefanisak at googlemail.com
Mon Oct 18 10:38:01 CEST 2010


Hey,

you may want to avoid setting an additional parameter if you want to use
certain controllers with nothing else than xml.
Therefore you can set the format within your controller like
$this->request->setFormat("xml");
But I am not sure if it's nice to do so.

If it's possible to configure a controllers default format, I'd like to know
it as well :)

Cheers
Stefan

2010/10/18 Steffen Müller <typo3 at t3node.com>

> 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
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>


More information about the TYPO3-project-typo3v4mvc mailing list