Bug #85138

Shortcut in menu always is rendered as inactive

Added by Simon Gilli about 1 year ago. Updated 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

History

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

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

#3 Updated by Riccardo De Contardi 3 months ago

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

#4 Updated by Benjamin Serfhos 3 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 2 months ago

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

Also available in: Atom PDF