Project

General

Profile

Actions

Bug #99051

closed

MenuProcessor - FLUID - Link to external URL - url-type: email

Added by Christian Hackl about 2 years ago. Updated 6 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-11-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If you use the TypoScript Menuprocessor and have a Page-type "Link to external URL" and set the field "url" to "mailto:" 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

typoscript.JPG (30.8 KB) typoscript.JPG Christian Hackl, 2022-11-10 14:15
pageSettings.JPG (139 KB) pageSettings.JPG Christian Hackl, 2022-11-10 14:15
f-debug-fluid.JPG (39.2 KB) f-debug-fluid.JPG Christian Hackl, 2022-11-10 14:15
clipboard-202211230916-u7bmj.png (71 KB) clipboard-202211230916-u7bmj.png Georg Ringer, 2022-11-23 08:16
x4.png (32.6 KB) x4.png J. Peter M. Schuler, 2022-11-23 15:11
Actions #1

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

Actions #2

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
}

Actions #3

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

Actions

Also available in: Atom PDF