Issue Bug Closed

#100845TypeError setTargetPageType has to be int, string given

Stefan Froemken 05/09/23, 12:24 updated 07/09/24, 12:56

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

Reviews 3