#93039absRefPrefix should be of datatype stdWrap
Description
If one wants to set a prefix to prepend links with, for example for rss feeds generated with the news extension, it should be possible to set absRefPrefix not just with specific strings but dynamically using getText, for example to access site:base.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 5
-
Benni Mack commented and changed status
NewNeeds Feedback 12/11/20, 18:42 -
Jens Hoppe commented 12/15/20, 16:25
Benni Mack wrote in #note-1:
> since TYPO3 v9, you do not need to have this setting anymore, because under the hood Site Handling sets `config.absRefPrefix = auto` if not set. For absolute links, you should set typolink.forceAbsoluteUrl = 1 to enable fully URLs with the scheme + domain + port + path.
Cheers Benni, I see what you mean. A news item’s bodytext within an rss feed item is rendered using
format.html. I could probably use a copy oflib.parseFunc_RTE, adjust it to generate absolute urls and then assign it to<f:format.html>{newsItem.bodytext}</f:format.html>in my ownList.xmltemplate. -
Jens Hoppe commented 12/15/20, 16:59
Jens Hoppe wrote in #note-2:
> I could probably use a copy of
lib.parseFunc_RTE, adjust it to generate absolute urls and then assign it to<f:format.html>{newsItem.bodytext}</f:format.html>in my ownList.xmltemplate.This works. Thanks for pointing me in the right direction, Benni!
-
Jens Hoppe commented 12/15/20, 20:27
Jens Hoppe wrote in #note-2:
> Cheers Benni, I see what you mean. A news item’s bodytext within an rss feed item is rendered using
format.html. I could probably use a copy oflib.parseFunc_RTE, adjust it to generate absolute urls and then assign it to<f:format.html>{newsItem.bodytext}</f:format.html>in my ownList.xmltemplate.This is actually way to complicated. I have a different page type for the news rss feed, I only need to modify
lib.parseFunc_RTEfor this page type and thus not have to touch the xml template at all. -
Georg Ringer commented and changed status
Needs FeedbackClosed 02/09/21, 13:07I am closing this issue and feature request as other solutions solve it as well.
Hey Jens,
since TYPO3 v9, you do not need to have this setting anymore, because under the hood Site Handling sets `config.absRefPrefix = auto` if not set. For absolute links, you should set typolink.forceAbsoluteUrl = 1 to enable fully URLs with the scheme + domain + port + path.