#107901Copied and changed parseFunc object has no effect
Description
I have this Fluid template with 3 different parts:
<f:format.html parseFuncTSPath="lib.parseFunc_test">
<test>
Example 1
</test>
</f:format.html>
<f:format.html>
<test>
Example 2
</test>
</f:format.html>
<f:format.raw>
<test>
Example 3
</test>
</f:format.raw>
and want to create a parseFunc to handle the <test> HTML tag.
When adding this TypoScript
lib.parseFunc_test < lib.parseFunc
lib.parseFunc_test.htmlSanitize = 0
lib.parseFunc_test.allowTags := addToList(test)
there is no change. All three examples give me an unparsed HTML output.
Only by adding
lib.parseFunc.htmlSanitize = 0
lib.parseFunc.allowTags := addToList(test)
it works fine for example 1 and 3. Which is not the way to go imho.
Another thing: If I reference the TypoScript object (lib.parseFunc_test =< lib.parseFunc) it throws an Exception because the frontend.typoscript object does not handle references.
Tested in TYPO3 v12.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] Copied and changed parseFunc object has no effect Resolves: #107901 Releases: main