Feature #72177
closedAllow typolink-configuration for TMENUITEM
0%
Description
Currently a TMENU for example doesn't use (and doesn't provide similar functionality) base-functionality for typolinks. For example it is not easily possible to make use of a target set for external links. Typolinks default to use what is set in config.extTarget and allow overriding it for a specific typolink.
It would be great to have TMENUITEM support a "typolink"-configuration-property as well and use the typolink-defaults. As such extTarget would work out of the box (like you might expect it). Migration-path for people wanting the old behaviour would be to configure the TMENUITEM-typolink-setting not to honour extTarget.
TMENUITEM has a target-setting, but that's not specific for external targets. There is no extTarget-setting, just target. So we'll need to check how target should behave in the future then - maybe be a default across intTarget/extTarget if those are not explicitly set otherwise or so.
Updated by Stefan Neufeind almost 9 years ago
Currently you can only use stdWrap.cObject to override link-generation for TMENUITEMs, use doNotLinkIt=1 and configure the typolink-generation yourself. It will then require a CASE-statement to support links to internal pages as well as shortcuts.
Updated by Benni Mack about 5 years ago
- Status changed from New to Needs Feedback
Hey Stefan,
interesting idea. can you write down how this syntax would work (and how it would look like compared to the existing code)?
Thanks.
Benni.
Updated by Benni Mack over 4 years ago
- Status changed from Needs Feedback to Closed
Closed due to lack of feedback, if there is ambition in working on this, we can re-open the ticket.