Feature #27120

filters for ViewHelpers and templates

Added by Fernando Arconada over 10 years ago. Updated almost 10 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-05-29
Due date:
% Done:

0%

Estimated time:
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

#1

Updated by Sebastian Kurfuerst over 10 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 over 10 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 almost 10 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