Project

General

Profile

Actions

Bug #85138

closed

Shortcut in menu always is rendered as inactive

Added by Simon Gilli over 5 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Frontend
Target version:
Start date:
2015-05-20
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:

Description

A Shortcut in a menu always is rendered as inactive by HMENU. This especialy is a problem in the case a Shurtcut links to a parent page e.g. having a Shortcut `Home` to the parent root page.

The backport to 8 should include a feature toggle to activate this new behavior and not break the current.


Subtasks 1 (0 open1 closed)

Bug #67047: Cannot access shortcut target in menusClosedMathias Brodala2015-05-20

Actions

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #87923: Missing value of item.data.shortcut if use MenuProcessorClosed2019-03-15

Actions
Related to TYPO3 Core - Bug #69454: Shortcut page ignores the configured url targetClosed2015-09-01

Actions
Related to TYPO3 Core - Feature #80841: MenuProcessor is missing an option to mark shorcuts as active or currentClosed2017-04-13

Actions
Actions #1

Updated by Riccardo De Contardi almost 5 years ago

on Slack Sebastian Klein nicely shared this method, that works if you use Fluid to render your menu, which I report here:

{f:if(condition: '({item.data.doktype} == 4 && {item.data.shortcut} == {data.uid})', then: 'current')}

The item variable name depends on your Fluid template.

Actions #2

Updated by Jan Návrat almost 5 years ago

  • Related to Bug #87923: Missing value of item.data.shortcut if use MenuProcessor added
Actions #3

Updated by Riccardo De Contardi almost 5 years ago

  • Related to Bug #69454: Shortcut page ignores the configured url target added
Actions #4

Updated by Benjamin Serfhos almost 5 years ago

I created my custom DataProcessor to handle this functionality if you need it;
see: https://gist.github.com/bmoex/b0f8297293930146034838eeab72c087

Actions #5

Updated by Benni Mack almost 5 years ago

  • Target version changed from next-patchlevel to Candidate for patchlevel
Actions #6

Updated by Riccardo De Contardi over 4 years ago

  • Related to Feature #80841: MenuProcessor is missing an option to mark shorcuts as active or current added
Actions #7

Updated by Vincent Mans about 4 years ago

Riccardo De Contardi wrote:

on Slack Sebastian Klein nicely shared this method, that works if you use Fluid to render your menu, which I report here:

[...]

The item variable name depends on your Fluid template.

In order to make that work in cases where the navigation is handled in a section, you may have to add data:data in the arguments list, something like:

<f:render section="MainNavigation" arguments="{menu: mainnavigation, data: data}" />

Actions #8

Updated by Susanne Moog almost 4 years ago

For menus with pure TypoScript this can be solved by setting alwaysActivePidList conditionally if you are on the root page for example.

Actions #9

Updated by Gerrit Code Review almost 4 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64569

Actions #10

Updated by Gerrit Code Review almost 4 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64569

Actions #11

Updated by Gerrit Code Review almost 4 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64569

Actions #12

Updated by Gerrit Code Review almost 4 years ago

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64570

Actions #13

Updated by Gerrit Code Review over 3 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64569

Actions #14

Updated by Gerrit Code Review over 3 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64570

Actions #15

Updated by Simon Gilli over 3 years ago

  • Target version changed from Candidate for patchlevel to next-patchlevel
  • TYPO3 Version changed from 9 to 10
Actions #16

Updated by Gerrit Code Review over 3 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64570

Actions #17

Updated by Gerrit Code Review over 3 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64569

Actions #18

Updated by Gerrit Code Review over 3 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64570

Actions #19

Updated by Gerrit Code Review over 3 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64570

Actions #20

Updated by Gerrit Code Review over 3 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64570

Actions #21

Updated by Gerrit Code Review over 3 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64570

Actions #22

Updated by Gerrit Code Review about 3 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64570

Actions #23

Updated by Gerrit Code Review about 2 years ago

Patch set 9 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64570

Actions #24

Updated by Gerrit Code Review about 2 years ago

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72860

Actions #25

Updated by Gerrit Code Review about 2 years ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72860

Actions #26

Updated by Gerrit Code Review about 2 years ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72860

Actions #27

Updated by Gerrit Code Review about 2 years ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72860

Actions #28

Updated by Gerrit Code Review about 2 years ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72860

Actions #29

Updated by Gerrit Code Review about 2 years ago

Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72860

Actions #30

Updated by Gerrit Code Review about 2 years ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72881

Actions #31

Updated by Benni Mack about 2 years ago

  • Status changed from Under Review to Resolved
Actions #32

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF