Feature #27120

filters for ViewHelpers and templates

Added by Fernando Arconada about 4 years ago. Updated over 3 years ago.

Status:Rejected Start date:2011-05-29
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:-
Target version:-
Has patch:No

Description

You dont always want you HTML escaped. ViewHelpers could have filter attribute to avoid HTML escaping or for using you filter

<f:myviewhelper argument="{blas}" filter="raw" />
<f:myviewhelper argument="{blas}" filter="removeBadWords" />

<f:section filter="raw> </f:section>

<f:filter type="raw">
portion of code inside my template
<f:filter>

Filters could be pluggables at Package level or framework

History

#1 Updated by Sebastian Kurfuerst about 4 years ago

  • Status changed from New to Needs Feedback

if I understand you correctly what you want, that's already possible using the Raw ViewHelper:
http://git.typo3.org/FLOW3/Packages/Fluid.git?a=blob;f=Classes/ViewHelpers/RawViewHelper.php;h=36e310e40c00c53c354110ac260ccb3dcc28f4d1;hb=HEAD
Furthermore, ViewHelper arguments are never escaped.

Greets,
Sebastian

#2 Updated by Fernando Arconada about 4 years ago

Mostly this Twig concept but adapted to Fluid and without nesting in another tag
http://www.twig-project.org/doc/advanced.html

#3 Updated by Christian Müller over 3 years ago

  • Status changed from Needs Feedback to Rejected

This kind of settings probably wont be introduced anytime soon as the functionality is already there with the raw viewhelper, so I am closing this ticket for now.

Also available in: Atom PDF