Bug #69170
closed
Context Menu Typoscript: ###ID### is not replaced by openCustomUrlInContentFrame
Added by Christian Seifert almost 9 years ago.
Updated almost 7 years ago.
Description
The intention is to add a new click menu in the page tree redirecting to a backend module with the selected page uid.
Following [[https://docs.typo3.org/typo3cms/CoreApiReference/6.2/JavaScript/UsingExtjs/PageTree/?highlight=click#context-menu-custom-callbacks]], you can use "callbackAction = openCustomUrlInContentFrame" and configure the URL in "customAttributes.contentUrl". In 6.2 you can use the function getModuleUrl to generate the URI:
$clickMenuUrl = \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl(
'txmymodule',
array('id' => '###ID###')
);
So ###ID### is expected to be replaced by the according Ext.js function "openCustomUrlInContentFrame" (actions.js).
Unfortunately, the parameters of the generated URL are URI encoded, so that there is no chance to replace ###ID###. It is submitted as %23%23%23ID%23%23%23 instead.
Automatical replacement of the dynamic ID parameter doesn't seem to work at the moment.
- Status changed from New to Under Review
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42731
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42733
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42735
Patch set 2 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42731
Patch set 3 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42731
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42733
Patch set 4 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42731
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF