Project

General

Profile

Actions

Feature #78459

closed

Add pageType option to f:widget.link

Added by Johannes Hertenstein about 8 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2016-10-27
Due date:
% Done:

0%

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

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

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #92529: Remove fluid widgetsClosed2020-10-09

Actions
Actions

Also available in: Atom PDF