Actions
Bug #100845
closedTypeError setTargetPageType has to be int, string given
Start date:
2023-05-09
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Hello,
I'm working with RSS feed XML output of extension news. In fluid template you can find following line:
<atom:link href="{f:uri.page(pageType: settings.list.rss.channel.typeNum, absolute: 'true')}" rel="self" type="application/rss+xml" />
The problem is the TypoScript object path which only can return string or array values. But pageType expects an integer value.
I don't see an easy solution to convert string2int in fluid itself, so, the idea would be to cast that value in PageViewHelper itself.
I will create a patch
Stefan
Actions