[TYPO3-mvc] FLUIDTEMPLATE and htmlentities
Jacco van der Post
jacco at id-internetservices.com
Fri Apr 8 18:17:06 CEST 2011
I am using <f:cObject typoscriptObjectPath="lib.topMenu1" />
and define the menu in TS, than the menu gets rendered ok.
The only problem I have is using captions on images. the frontend output
gets messed up.
Some HTML like
<dl class="csc-textpic-image csc-textpic-firstcol" style="width:400px;"><dt>
gets printed out on the frontend.
Could someone confirm this?
--
Kind Regards
Jacco van der Post
Op 8-4-2011 12:04, Armin Rüdiger Vieweg schreef:
> Hello,
>
> I've got a question about the cObject FLUIDTEMPLATE:
>
> Since 4.5. I use the new FLUIDTEMPLATE cObject, instead of TEMPLATE. But
> if I define a variables {main_navigation} for example, and fill it with
> an HMENU, TYPO3 outputs escaped html-code (php method: htmlentities();)
>
> I'll get this: <ul id="mainnavigation">
> instead of this: <ul id="mainnavigation">
>
> To fix it I have written a viewhelper which perfoms an html_entity_decode:
> <v:entityDecode>{main_navigation}</v:entityDecode>
>
> This works fine, but it is a little bit circular just to output raw html
> code, cause viewhelpers have to be included inside of an extension.
>
> Exists an easier way? Or a possibility to disable htmlentities() in fluid?
>
> Thanks and best regards
> Armin
More information about the TYPO3-project-typo3v4mvc
mailing list