Bug #85138
closedShortcut in menu always is rendered as inactive
Added by Simon Gilli over 6 years ago. Updated over 2 years ago.
100%
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.
Updated by Riccardo De Contardi almost 6 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.
Updated by Jan Návrat almost 6 years ago
- Related to Bug #87923: Missing value of item.data.shortcut if use MenuProcessor added
Updated by Riccardo De Contardi almost 6 years ago
- Related to Bug #69454: Shortcut page ignores the configured url target added
Updated by Benjamin Serfhos almost 6 years ago
I created my custom DataProcessor to handle this functionality if you need it;
see: https://gist.github.com/bmoex/b0f8297293930146034838eeab72c087
Updated by Benni Mack almost 6 years ago
- Target version changed from next-patchlevel to Candidate for patchlevel
Updated by Riccardo De Contardi over 5 years ago
- Related to Feature #80841: MenuProcessor is missing an option to mark shorcuts as active or current added
Updated by Vincent Mans about 5 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}" />
Updated by Susanne Moog almost 5 years ago
For menus with pure TypoScript this can be solved by setting alwaysActivePidList conditionally if you are on the root page for example.
Updated by Gerrit Code Review over 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
Updated by Gerrit Code Review over 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
Updated by Gerrit Code Review over 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
Updated by Gerrit Code Review over 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
Updated by Gerrit Code Review over 4 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
Updated by Gerrit Code Review over 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/+/64570
Updated by Simon Gilli over 4 years ago
- Target version changed from Candidate for patchlevel to next-patchlevel
- TYPO3 Version changed from 9 to 10
https://review.typo3.org/c/Packages/TYPO3.CMS/+/64570 is preferable imho
Updated by Gerrit Code Review over 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/+/64570
Updated by Gerrit Code Review over 4 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
Updated by Gerrit Code Review over 4 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
Updated by Gerrit Code Review over 4 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
Updated by Gerrit Code Review over 4 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
Updated by Gerrit Code Review over 4 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
Updated by Gerrit Code Review about 4 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
Updated by Gerrit Code Review about 3 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
Updated by Gerrit Code Review about 3 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
Updated by Gerrit Code Review about 3 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
Updated by Gerrit Code Review about 3 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
Updated by Gerrit Code Review about 3 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
Updated by Gerrit Code Review about 3 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
Updated by Gerrit Code Review about 3 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
Updated by Gerrit Code Review about 3 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
Updated by Benni Mack about 3 years ago
- Status changed from Under Review to Resolved
Applied in changeset fc6cf2c9595d82b831ee1be47aea2018c6d93758.