Bug #72825
closedformat.html-ViewHelper creates unnecessary HTML
0%
Description
In the Fluid templates, the format.html ViewHelper is used in several places to convert a simple string to a clickable link.
Taken from the "SearchResult" partial:
<dd class="tx-indexedsearch-text-item-path"><f:format.html>{row.path}</f:format.html></dd>
creates
<dd class="tx-indexedsearch-text-item-path"><p><a href="/sites/test/index.php?id=20">/Meta-Navigation/Impressum</a></p></dd>
The extra paragraph makes it harder to style the output. The ViewHelper is used more than once and in some places it generates even more paragraphs.
I have solved it by using the format.raw-ViewHelper instead, the ouput is still the same (minus the extra paragraph) but maybe using a link-ViewHelper instead of pre-rendered paths is the way to go?!
Updated by Mathias Schreiber almost 9 years ago
- Status changed from New to Needs Feedback
- Assignee set to Mathias Schreiber
Did you try it together with a speaking URL generator like realURL?
Updated by Dominik Hahn almost 9 years ago
EXT: realurl was enabled at that time but disabling it does not help.
Updated by Riccardo De Contardi almost 9 years ago
maybe I am wrong... isn't this related to the TSConfig setting RTE.default.allowTagsOutside
?
Updated by Tymoteusz Motylewski over 8 years ago
- Assignee changed from Mathias Schreiber to Tymoteusz Motylewski
Hi Dominik,
does changing <f:format.html>{row.path}</f:format.html> to
<f:format.raw>{row.path}</f:format.raw>
solves the problem for you?
Updated by Tymoteusz Motylewski over 8 years ago
- Status changed from Needs Feedback to Closed