Project

General

Profile

Actions

Feature #24812

closed

Pagetree -Provide a default contextmenu action to open custom urls

Added by Stefan Galinski over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
Start date:
2011-01-25
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:

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)


Files

17312_v1.diff (3.8 KB) 17312_v1.diff Administrator Admin, 2011-01-25 20:31
T3X_cmaction-0_0_0-z-201101252024.t3x (4.24 KB) T3X_cmaction-0_0_0-z-201101252024.t3x Administrator Admin, 2011-01-25 20:31

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #24753: ClickMenu Items from own extensions wont work anymoreClosed2011-01-23

Actions
Actions #1

Updated by Ernesto Baschny over 13 years ago

Committed to trunk, rev.10312.

Actions

Also available in: Atom PDF