[TYPO3-mvc] problem with fluid template for a rss feed

Kerstin Eitner eitner.kerstin at googlemail.com
Fri Nov 11 14:57:06 CET 2011


Hi Bastian,

yeah great!

The lines
<content:encode>{f:format.raw(value: 
'<![CDATA')}[{newsItem.bodytext}]]></content:encode>
do exactly what i was looking for.

Thank you very much!

I'll create an issue =)

Greets,
Kerstin



Am 11.11.2011 14:44, schrieb Bastian Waidelich:
> Claus Due wrote:
>
> Hi Kerstin & Claus,
>
>> You may want to check out the extension "fed", at least to see how a
>> RawViewHelper is made.
>> With it, you can do this:
>> <fed:raw><![CDATA[</fed:raw>CDATA'd text]]>
>
> Did you try this? Because this would probably comment out everything
> behind the CDATA tag still.
>
> BTW: There is a f:format.raw ViewHelper now in Fluid, too - not that I
> wouldn't recommend using fed! ;)
>
> <content:encode>{f:format.raw(value:
> '<![CDATA')}[{newsItem.bodytext}]]></content:encode>
>
> should do the trick, but a cdata viewHelper would be nicer:
> <content:encode>{newsItem.bodytext -> x:format.cdata()}</content:encode>
>
> If you create an issue, I'll create the code ;)
>
> Best,
> Bastian



More information about the TYPO3-project-typo3v4mvc mailing list