Issue Feature Closed

#78459Add pageType option to f:widget.link

Johannes Hertenstein 10/27/16, 11:03 updated 12/14/21, 12:55

Description

I have noticed, that the Widget\LinkViewHelper is missing a pageType argument which I expected to be available.
For AJAX requests the pageType is hardcoded to 7076 which is less than optimal IMO.

The expected behaviour would be the following (example from tx_news):

  • <f:widget.link arguments="{ ... }">...</f:widget.link>
    links to the default page type (current behaviour)
  • <f:widget.link pageType="1337" arguments="{ ... }">...</f:widget.link>
    Links to the page type 1337
  • <f:widget.link ajax="1" arguments="{ ... }">...</f:widget.link>
    Links to page type 7076 to ensure backwards compatibility (current behaviour)
  • <f:widget.link ajax="1" pageType="1337" arguments="{ ... }">...</f:widget.link>
    Links to pageType 1337 but does not prefix the arguments

Reviews 1