Project

General

Profile

Actions

Bug #72825

closed

format.html-ViewHelper creates unnecessary HTML

Added by Dominik Hahn almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Category:
Indexed Search
Target version:
-
Start date:
2016-01-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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?!

Actions #1

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?

Actions #2

Updated by Dominik Hahn almost 9 years ago

EXT: realurl was enabled at that time but disabling it does not help.

Actions #3

Updated by Riccardo De Contardi almost 9 years ago

maybe I am wrong... isn't this related to the TSConfig setting RTE.default.allowTagsOutside ?

Actions #4

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?

Actions #5

Updated by Tymoteusz Motylewski over 8 years ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF