#72177Allow typolink-configuration for TMENUITEM
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.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 3
-
Stefan Neufeind commented 12/11/15, 14:05
-
Benni Mack commented and changed status
NewNeeds Feedback 09/24/19, 11:14Hey 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. -
Benni Mack commented and changed status
Needs FeedbackClosed 03/21/20, 19:47Closed due to lack of feedback, if there is ambition in working on this, we can re-open the ticket.
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.