Bug #85138

Shortcut in menu always is rendered as inactive

Added by Simon Gilli over 1 year ago. Updated about 2 months ago.

Status:
Accepted
Priority:
Must have
Assignee:
Category:
Frontend
Start date:
2015-05-20
Due date:
% Done:

50%

TYPO3 Version:
9
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

Bug #67047: Cannot access shortcut target in menusUnder ReviewMathias Brodala


Related issues

Related to TYPO3 Core - Bug #87923: Missing value of item.data.shortcut if use MenuProcessor New 2019-03-15
Related to TYPO3 Core - Bug #69454: Shortcut page ignores the configured url target New 2015-09-01
Related to TYPO3 Core - Feature #80841: MenuProcessor is missing an option to mark shorcuts as active or current New 2017-04-13

History

#1 Updated by Riccardo De Contardi 6 months 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.

#2 Updated by Jan Návrat 6 months ago

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

#3 Updated by Riccardo De Contardi 6 months ago

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

#4 Updated by Benjamin Serfhos 5 months ago

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

#5 Updated by Benni Mack 5 months ago

  • Target version changed from next-patchlevel to Candidate for patchlevel

#6 Updated by Riccardo De Contardi about 2 months ago

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

Also available in: Atom PDF