[TYPO3-mvc] Outputformat not working in news extension?

Philipp Wrann philippwrann at gmail.com
Mon Jun 22 14:17:12 CEST 2015


http://docs.typo3.org/typo3cms/ExtbaseFluidBook/8-Fluid/2-using-different-output-formats.html

I cant make this work?

my template code:
<f:link.action action="detail" format="print" arguments="{news:newsItem.uid}"></f:link.action>

if i debug it allways says the request format is html... i cant override this.

I use cooluri, but the mapped request is correct:
a:4:{s:5:"cHash";s:32:"337db05db05c6e8dc3a88f33909dc9a9";s:2:"id";s:2:"76";s:19:"tx_news_pi1[format]";s:5:"print";s:17:"tx_news_pi1[news]";s:3:"214";}

additionally those args are set via query:
tx_news_pi1[action]=detail&tx_news_pi1[controller]=News

So extbase should dispatch the details action correctly using the .print format.

I placed the template Detail.print besides Detail.html but its not chosen. Like i said, if i debug the request directly within the news Controller it says format=html

If i set the format to print in initializeAction it renders the html anyway.
even if i create the detail.print directly within the news extension (make sure no namespace issue causes the problem) the html is rendered.

Did something change here?


More information about the TYPO3-project-typo3v4mvc mailing list