Bug #87923

Missing value of item.data.shortcut if use MenuProcessor

Added by Jan Návrat about 1 year ago. Updated 26 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2019-03-15
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Missing value of item.data.shortcut if setup shortcut mode = 3, but if choice concrete page (shortcut mode = 0) than is everythink ok.

That is problem if you want rendering active shortcut depended selected root page or parent page.

<f:for each="{myNavigation}" as="item">
    <li>
        <a href="{item.link}" 
           class="{f:if(condition: item.active, then:' active')}
                  {f:if(condition: '({item.data.doktype} == 4 && {item.data.shortcut} == {data.uid})', then: 'current')}
                  {f:if(condition: item.current, then:' current')}" 
           {f:if(condition: item.target, then: ' target="{item.target}"')}
           title="{item.title}">{item.title}</a>
    </li>
</f:for>

Related issues

Related to TYPO3 Core - Bug #85138: Shortcut in menu always is rendered as inactive Accepted 2015-05-20
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 Jan Návrat about 1 year ago

  • Related to Bug #85138: Shortcut in menu always is rendered as inactive added

#2 Updated by Riccardo De Contardi about 1 year ago

  • Description updated (diff)
  • Category set to Fluid

#3 Updated by Riccardo De Contardi 9 months ago

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

#4 Updated by Claus Due 26 days ago

  • Category changed from Fluid to Content Rendering

Moved to content rendering category since this is a responsibility of the DataProcessor to assign the correct value(s) and as such does not belong in the Fluid category (Fluid only receives the values, it does not create them).

Also available in: Atom PDF