Issue Bug Closed

#63307Page tree - context menu with predefined callback in 6.2

Fabrice Morin 11/24/14, 17:54 updated 06/29/17, 22:34

Description

According to the page http://docs.typo3.org/typo3cms/CoreApiReference/JavaScript/UsingExtjs/PageTree/Index.html, it is possible to define a predefined callback in a custom action using the following code :

720 = ITEM
720 {
     name = someCustomeAction
     label = LLL:EXT:extension/locallang.xml:someCustomeAction
     icon = ' . \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'ext_icon.gif') . '
     spriteIcon =
     displayCondition =
     callbackAction = openCustomUrlInContentFrame
     customAttributes.contentUrl = mod.php?M=web_WorkspacesWorkspaces&id=###ID###
}

The problem on v6.2 (not tested on v4.x, but I suppose it works with v4.5) is that the ###ID### marker is not replaced, but also can corrupt the URL if placed before the “M” parameter (in that case it removes the moduleToken parameter).

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.