Actions
Bug #63307
closedEpic #68075: Remove ExtJS from backend
Page tree - context menu with predefined callback in 6.2
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Pagetree
Target version:
-
Start date:
2014-11-24
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
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).
Files
Actions