Bug #67556

System news cannot render RTE content

Added by Alexander Jahn almost 4 years ago. Updated about 1 year ago.

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

0%

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

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

with_auto_link.png View (15.8 KB) taywa gmbh, 2018-05-15 11:57


Related issues

Related to TYPO3 Core - Feature #64386: Allow cObject registration during runtime Closed 2015-01-20
Related to TYPO3 Core - Bug #66855: Format/HtmlViewHelper don't render Links in TYPO3_MODE = BE Under Review 2015-05-08
Related to TYPO3 Core - Bug #68188: ContentObject registration only available in TYPO3_mode == FE Closed 2015-07-15
Related to TYPO3 Core - Bug #33083: Images in login news not working Closed 2012-01-10
Related to TYPO3 Core - Bug #58702: f:uri.page Viewhelper creates broken links on cli Rejected 2014-05-12
Related to TYPO3 Core - Story #73183: Removal of frontend simulation in all ViewHelpers Under Review 2016-02-08
Related to TYPO3 Core - Bug #76305: TYPO3 Backend uses f:format.html Rejected 2016-05-26
Related to TYPO3 Core - Bug #80315: Use f:format.raw for formatting system news Rejected 2017-03-17
Duplicated by TYPO3 Core - Bug #81317: Links in system news Rejected 2017-05-23

History

#1 Updated by Gerrit Code Review almost 4 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

#2 Updated by Gerrit Code Review almost 4 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

#3 Updated by Susanne Moog almost 4 years ago

  • Target version changed from 7.4 (Backend) to 7.5

#4 Updated by Markus Sommer over 3 years ago

  • Assignee set to Alexander Jahn

#5 Updated by Claus Due over 3 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.

#6 Updated by Benni Mack over 3 years ago

  • Target version deleted (7.5)

#7 Updated by Felix Kopp over 3 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.

#8 Updated by Wouter Wolters about 3 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.

#9 Updated by Clemens Riccabona about 3 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 ...

#10 Updated by Clemens Riccabona about 3 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.

#11 Updated by Gerrit Code Review almost 3 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

#12 Updated by Gerrit Code Review almost 3 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

#13 Updated by Gerrit Code Review almost 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/48580

#14 Updated by Gerrit Code Review over 2 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

#15 Updated by Daniel Schöne about 2 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().

#16 Updated by Gerrit Code Review about 2 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

#17 Updated by Stephan Großberndt almost 2 years ago

  • Duplicated by Bug #81317: Links in system news added

#18 Updated by Susanne Moog over 1 year ago

  • Category changed from Content Rendering to Frontend

#19 Updated by taywa gmbh about 1 year 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.

#20 Updated by taywa gmbh about 1 year 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>

Also available in: Atom PDF