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

History 27

  1. Gerrit Code Review pushed patch set 1 for main to change 79003 status New Under Review 05/09/23, 12:43

  2. Gerrit Code Review pushed patch set 2 for main to change 79003 05/09/23, 14:22

  3. Gerrit Code Review pushed patch set 3 for main to change 79003 05/22/23, 07:49

  4. Gerrit Code Review pushed patch set 1 for 12.4 to change 79112 05/23/23, 04:19

  5. Gerrit Code Review pushed patch set 1 for 11.5 to change 79132 05/23/23, 04:25

  6. Stefan Froemken commented and changed status Under Review Resolved done 0 % 100 % 05/23/23, 04:25

    Applied in changeset commit:6730213d1058335c08a6f5e2b6a0146958caec85.

  7. Benni Mack changed status Resolved Closed 07/09/24, 12:56