[TYPO3-dev] How to use an xml template on an extension instead of an hmtl?
Jost Baron
jost.baron at gmx.de
Fri Aug 16 12:11:22 CEST 2013
Hi Juan,
the possibility to choose the format in news (not tt_news!) via TS is
not default extbase behavior. You can choose xml format by adding the
parameter
tx_extkey_pluginkey[format]=xml
to your URL.
Jost
On 08/16/2013 12:06 PM, Juan Asencio wrote:
> Hello everybody,
>
> I made an extension where I want to display an xml file. Looking at tt_news, the extension has a list.html and a list.xml file to display rss. According to the manual, one should specify on the template that the plugin should use xml.
>
> I tried to do that in my extension but doesn't work. Any suggestions how to achieve that.
>
> I have on my extension under Resources/Private/Templates/MyExtension/Show.html and Resources/Private/Templates/MyExtension/Show.xml
>
> On my Template setup I have the following line:
>
> # set the format
> plugin.tx_myextension.settings.format = xml
>
> But I still get an html file when I see the page.
>
> I guess it might not be enough just to add the #set the format line on the template. But I can figure it out what else I need to do.
>
> Any guidelines will much appreciated.
>
> Have a nice weekend.
>
> Juan.-
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>
More information about the TYPO3-dev
mailing list