Bug #67556
closedSystem news cannot render RTE content
Added by Alexander Jahn over 9 years ago. Updated almost 3 years ago.
100%
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:
- 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.
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 |
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
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
Updated by Susanne Moog over 9 years ago
- Target version changed from 7.4 (Backend) to 7.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.
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.
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.
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 ...
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.
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
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
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
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
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().
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
Updated by Stephan Großberndt over 7 years ago
- Has duplicate Bug #81317: Links in system news added
Updated by Susanne Moog about 7 years ago
- Category changed from Content Rendering to Frontend
Updated by taywa gmbh over 6 years ago
- File no link.png no link.png added
- Complexity set to medium
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.
Updated by taywa gmbh over 6 years ago
- File with_auto_link.png with_auto_link.png added
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>
Updated by Clemens Riccabona about 5 years ago
Still present in TYPO3 version 9.5.11, "auto-linking" workaround still works.
Updated by Susanne Moog almost 5 years ago
- Status changed from Under Review to Accepted
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
Updated by Andreas Kießling over 4 years ago
- Has duplicate Bug #91973: Links / HTML tags in sys_news not rendered added
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
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
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
Updated by Benni Mack over 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 2d40f74822a947c814155a71d1abe9daa8cee816.
Updated by Christian Kuhn about 3 years ago
- Related to Bug #95158: HtmlSanitizer accidentally enforced again due to sys_note changes added
Updated by Oliver Hader about 3 years ago
Updated by Oliver Bartsch almost 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.
Updated by Oliver Hader almost 3 years ago
- Related to Bug #96535: System news (backend login messages) don't render links anymore added
Updated by Christian Kuhn almost 3 years ago
- Related to Bug #97034: System News not rendering RTE Links and URLs containing a protocol added
Updated by Christian Kuhn almost 3 years ago
- Related to deleted (Bug #97034: System News not rendering RTE Links and URLs containing a protocol)
Updated by Christian Kuhn almost 3 years ago
- Has duplicate Bug #97034: System News not rendering RTE Links and URLs containing a protocol added