Bug #99051
closedMenuProcessor - FLUID - Link to external URL - url-type: email
0%
Description
If you use the TypoScript Menuprocessor and have a Page-type "Link to external URL" and set the field "url" to "mailto:info@domain.tld" then the output array of the menuprocessor generates "link" as char "#".
But the part for the data-attribue (data-mailto-token) for email links is missing, and i can't easily use the f:link.email ViewHelper cause i don't know if it is a mail link or not.
So i have to create a own ViewHelper to check if {item.data.url} is type of mail, this is very unpleasant.
So please add a arrayKey (e.g. mailtoToken) for Menuprocessor if it is a mail-address or at least add an info that it is a mail address so that you can call the f.link.mail ViewHelper yourself...
Thank you.
Files
Updated by Georg Ringer about 2 years ago
tested with v12 with TS
page.20.dataProcessing { 121 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor 121 { as = test entryLevel = 0 levels = 2 special = directory special.value = 261 } }
gives me the correct link
Updated by J. Peter M. Schuler almost 2 years ago
Interesting. in 11LTS (PHP 7.4 and 8.1) this isn't the case:
lib.navigations.headermenu.dataProcessing.10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor lib.navigations.headermenu.dataProcessing.10 { levels = 8 expandAll = 1 includeSpacer = 0 as = menu }
Updated by Georg Ringer 6 months ago
- Status changed from New to Closed
I am closing this issue as it works in v12. No change is expected for v11 anymore