Project

General

Profile

Actions

Feature #93039

closed

absRefPrefix should be of datatype stdWrap

Added by Jens Hoppe almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2020-12-09
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.

Actions #1

Updated by Benni Mack almost 4 years ago

  • Status changed from New to Needs Feedback

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.

Actions #2

Updated by Jens Hoppe almost 4 years ago

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 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 own List.xml template.

Actions #3

Updated by Jens Hoppe almost 4 years ago

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 own List.xml template.

This works. Thanks for pointing me in the right direction, Benni!

Actions #4

Updated by Jens Hoppe almost 4 years ago

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 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 own List.xml template.

This is actually way to complicated. I have a different page type for the news rss feed, I only need to modify lib.parseFunc_RTE for this page type and thus not have to touch the xml template at all.

Actions #5

Updated by Georg Ringer almost 4 years ago

  • Status changed from Needs Feedback to Closed

I am closing this issue and feature request as other solutions solve it as well.

Actions

Also available in: Atom PDF