Project

General

Profile

Actions

Bug #67556

closed

System news cannot render RTE content

Added by Alexander Jahn over 9 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2015-06-17
Due date:
% Done:

100%

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

Description

System news records (shown below the backend login form) provide an RTE for writing content.
However, due to several problems the content is not rendered correctly, if at all.
E.g links generated with the link wizard are not display at all.

This is a two-part problem:

  1. HtmlViewHelper is not initializing enough of an FE to provide working cObj functionality.
  2. Content objects are only registered in FE mode, thus no cObj (TEXT etc.) can ever work in a non-FE mode.

Interestingly FrontendSimulatorUtility::simulateFrontendEnvironment() exists for this specific purpose, but is not used here nor would it solve the problem.

Relates to https://forge.typo3.org/issues/64386
Should solve https://forge.typo3.org/issues/66855


Files

no link.png (16 KB) no link.png taywa gmbh, 2018-05-15 11:39
with_auto_link.png (15.8 KB) with_auto_link.png taywa gmbh, 2018-05-15 11:57

Related issues 13 (0 open13 closed)

Related to TYPO3 Core - Feature #64386: Allow cObject registration during runtimeClosedBenni Mack2015-01-20

Actions
Related to TYPO3 Core - Bug #66855: Format/HtmlViewHelper don't render Links in TYPO3_MODE = BEClosed2015-05-08

Actions
Related to TYPO3 Core - Bug #68188: ContentObject registration only available in TYPO3_mode == FEClosedSteffen Ritter2015-07-15

Actions
Related to TYPO3 Core - Bug #33083: Images in login news not workingClosed2012-01-10

Actions
Related to TYPO3 Core - Bug #58702: f:uri.page Viewhelper creates broken links on cliRejected2014-05-12

Actions
Related to TYPO3 Core - Story #73183: Removal of frontend simulation in all ViewHelpersClosed2016-02-08

Actions
Related to TYPO3 Core - Bug #76305: TYPO3 Backend uses f:format.htmlRejectedAndreas Kienast2016-05-26

Actions
Related to TYPO3 Core - Bug #80315: Use f:format.raw for formatting system newsRejectedXavier Perseguers2017-03-17

Actions
Related to TYPO3 Core - Bug #95158: HtmlSanitizer accidentally enforced again due to sys_note changesClosedOliver Hader2021-09-10

Actions
Related to TYPO3 Core - Bug #96535: System news (backend login messages) don't render links anymoreClosed2022-01-14

Actions
Has duplicate TYPO3 Core - Bug #81317: Links in system newsRejectedMarkus Hölzle2017-05-23

Actions
Has duplicate TYPO3 Core - Bug #91973: Links / HTML tags in sys_news not renderedRejected2020-08-11

Actions
Has duplicate TYPO3 Core - Bug #97034: System News not rendering RTE Links and URLs containing a protocolClosed2022-02-25

Actions
Actions #1

Updated by Gerrit Code Review over 9 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/40352

Actions #2

Updated by Gerrit Code Review over 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/40352

Actions #3

Updated by Susanne Moog over 9 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #4

Updated by Markus Sommer over 9 years ago

  • Assignee set to Alexander Jahn
Actions #5

Updated by Claus Due about 9 years ago

Suggested alternative solution:

Avoid use of RTE in system news. It's not nice but it would be the only clean solution to preserve BE/FE separation.

It may sound pretty categorical but the fact is that the HtmlViewHelper is just completely dependent on a heap of FE-specific objects and contexts. We might consider implementing an alternative, BE-specific ViewHelper but it will never be as comprehensive as the FE one - and it would also imply a custom RTE configuration and processing instruction object for that ViewHelper alone.

I recommend a "won't fix" here but I refrain from rejecting the issue.

Actions #6

Updated by Benni Mack about 9 years ago

  • Target version deleted (7.5)
Actions #7

Updated by Felix Kopp almost 9 years ago

In system news on login screen (during maintenance mode) links within RTE are still not rendered.

I am also pro TEXT-only system news input field.

Actions #8

Updated by Wouter Wolters over 8 years ago

  • Status changed from Under Review to New
  • Assignee deleted (Alexander Jahn)
  • TYPO3 Version changed from 7 to 8

Setting this to new again and raise the target version to 8.

See the original review at http://review.typo3.org/40352 for the argumentation why the current approach was not accepted.

Actions #9

Updated by Clemens Riccabona over 8 years ago

Hmm, so rendering of links in backend-messages is still not possible in 7.6

<sarcasm>
Nice if you import these from a rss-resource.
</sarcasm>

nobody can get to the original news-entry ...

+1 for fixing that in v7 LTS ...

Actions #10

Updated by Clemens Riccabona over 8 years ago

Clemens Riccabona wrote:

Hmm, so rendering of links in backend-messages is still not possible in 7.6
[...]
nobody can get to the original news-entry ...

+1 for fixing that in v7 LTS ...

To clarify: i am totally fine with plaintext system news.
But the link-feature is a really most common part of any type of "news" all over the world!
And additionally don't hint the editor of such a news the wrong way by providing him/her with a full-featured RTE!
This is awful, to say it the nice way.

Actions #11

Updated by Gerrit Code Review over 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48580

Actions #12

Updated by Gerrit Code Review over 8 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48580

Actions #13

Updated by Gerrit Code Review over 8 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48580

Actions #14

Updated by Gerrit Code Review about 8 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48580

Actions #15

Updated by Daniel Schöne over 7 years ago

Came across this issue when having similar problems with the restler extension. What helped in my case (beside "simulating" FE) was correctly registering the content objects in

$GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects']

.. as in sysext/frontend/ext_localconf.php. This seems to be missing in the current changes.

Not sure if this is enough - at least links are now correctly generated - in my case - using cObj->parseFunc().

Actions #16

Updated by Gerrit Code Review over 7 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48580

Actions #17

Updated by Stephan Großberndt over 7 years ago

  • Has duplicate Bug #81317: Links in system news added
Actions #18

Updated by Susanne Moog about 7 years ago

  • Category changed from Content Rendering to Frontend
Actions #19

Updated by taywa gmbh over 6 years ago

Still present in 8.7.10. Added screenshot to make visible clear, whats missing. But I agree, not so important but would be nice to have.

Actions #20

Updated by taywa gmbh over 6 years ago

Just found a workaround. If you write the url unlinked, then url is automatically convertet to a link. If linked in RTE, its not renderd. See image


<p>Diese TYPO3-Installation wird betreut durch die taywa gmbh: https://www.taywa.ch</p>

<p>Kontakt: https://www.taywa.ch/taywa/kontakt</p>

<p>Not renderd link<a href="http://www.taywa.ch">link</a></p>
Actions #21

Updated by Clemens Riccabona about 5 years ago

Still present in TYPO3 version 9.5.11, "auto-linking" workaround still works.

Actions #22

Updated by Susanne Moog almost 5 years ago

  • Status changed from Under Review to Accepted
Actions #23

Updated by Andreas Kießling over 4 years ago

Still present in 10.4 and the workaround does not seem to work, everything just gets stripped away.

I would be fine with changing format.html to just format.raw, we could disable the page links etc. for the RTE and just keep external url and maybe email. The basic formatting stuff like bold, lists etc. should work

Actions #24

Updated by Andreas Kießling over 4 years ago

  • Has duplicate Bug #91973: Links / HTML tags in sys_news not rendered added
Actions #25

Updated by Gerrit Code Review over 3 years ago

  • Status changed from Accepted to Under Review

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70740

Actions #26

Updated by Gerrit Code Review over 3 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70740

Actions #27

Updated by Gerrit Code Review over 3 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70740

Actions #28

Updated by Benni Mack over 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #29

Updated by Benni Mack over 3 years ago

  • Status changed from Resolved to Closed
Actions #30

Updated by Christian Kuhn over 3 years ago

  • Related to Bug #95158: HtmlSanitizer accidentally enforced again due to sys_note changes added
Actions #31

Updated by Oliver Hader over 3 years ago

  • Status changed from Closed to New
Actions #33

Updated by Oliver Bartsch about 3 years ago

  • Status changed from New to Closed

Hi, I just tested this again on v11 and master. Due to the introduced ViewHelpers f:transform.html and f:sanitize.htm using RTE for e.g. defining links, works. Therefore I'll close this issue now. In case you still encounter issues on using the RTE for sys_news content, please contact me or create a new issue with a reference to this one.

Actions #34

Updated by Oliver Hader almost 3 years ago

  • Related to Bug #96535: System news (backend login messages) don't render links anymore added
Actions #35

Updated by Christian Kuhn almost 3 years ago

  • Related to Bug #97034: System News not rendering RTE Links and URLs containing a protocol added
Actions #36

Updated by Christian Kuhn almost 3 years ago

  • Related to deleted (Bug #97034: System News not rendering RTE Links and URLs containing a protocol)
Actions #37

Updated by Christian Kuhn almost 3 years ago

  • Has duplicate Bug #97034: System News not rendering RTE Links and URLs containing a protocol added
Actions

Also available in: Atom PDF