Issue Feature Closed

#24812Pagetree -Provide a default contextmenu action to open custom urls

Stefan Galinski 01/25/11, 20:30 updated 02/11/11, 11:03

Description

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.

(issue imported from #M17312)

Reviews 0

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