[TYPO3-core] RFC #17312: Pagetree -Provide a default contextmenu action to open custom urls

Stefan Galinski stefan.galinski at gmail.com
Tue Jan 25 20:35:58 CET 2011


Hi,

This is an SVN patch request.

Type: bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=17312

Branches:
Trunk

Problem:
Currently it's tricky to add simple custom contextmenu actions that just 
open a custom url in the content frame.

Solution:
Provide a default contextmenu action that can be filled with an attribute to 
open a custom url in the content frame. See below:

720 = ITEM
720 {
        name = customAction2
        label = LLL:EXT:cmaction/locallang.xml:customAction2
        icon = someIcon
        spriteIcon =
        displayCondition =
        callbackAction = openCustomUrlInContentFrame
        customAttributes.contentUrl = 
mod.php?M=web_WorkspacesWorkspaces&id=###ID###
}

The id marker is replaced in the contextmenu action with the selected node 
id.

Note:
This addition was requested by Ernesto to simplify the rewrite of existing 
context menu actions.

How To Test:
Install the provided extension, clear the cache and use the two new pagetree 
context menu actions.

-- 
Stefan Galinski
staatl. geprüfter Informatiktechniker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 17312_v1.diff
Type: text/x-patch
Size: 3891 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110125/776d875b/attachment.bin>


More information about the TYPO3-team-core mailing list