Project

General

Profile

Actions

Bug #19749

closed

overrideWithExtension uses hardcoded urls

Added by Steffen Kamper over 15 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-12-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

There are two wizards that you can override by extension:
  • new page create wizard
  • new content element wizard

Both are configured by typoscript, eg:
mod.web_list.newPageWiz.overrideWithExtension = templavoila
mod.web_list.newContentWiz.overrideWithExtension = templavoila

If you use that the url to the wizard is hardcoded in core: mod1/index.php

This is bad as
  • extension who use this method have to use this directory
  • you can't use modules with _DISPATCH this way

Attached patch solves that and introduce a possibility to define this url by following vars:

$GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['newPageWiz']['extension'] = 'mod.php?M=web_mymoduleM1';
$GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['newContentWiz']['extension'] = 'mod.php?M=tx_newcemod';

If the url isn't configured the old url is used to be compatible.

(issue imported from #M10028)


Files

overrideWithExtension.diff (6.75 KB) overrideWithExtension.diff Administrator Admin, 2008-12-28 15:03
overrideWithExtension_v2.diff (8.55 KB) overrideWithExtension_v2.diff Administrator Admin, 2008-12-28 16:12
Actions

Also available in: Atom PDF