System news cannot render RTE content
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:
- HtmlViewHelper is not initializing enough of an FE to provide working cObj functionality.
- 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.
#5 Updated by Claus Due almost 4 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.
#8 Updated by Wouter Wolters over 3 years ago
- Status changed from Under Review to New
- Assignee deleted (
- 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.
#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.
#15 Updated by Daniel Schöne over 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
.. 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().
#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>