[TYPO3-core] RFC: #10028: overrideWithExtension uses hardcoded urls
Steffen Kamper
info at sk-typo3.de
Sun Dec 28 15:10:57 CET 2008
Hi,
this is a SVN patch request.
Type: Bugfix
Bugtracker references:
http://bugs.typo3.org/view.php?id=10028
Branches: trunk
Problem:
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
Solution:
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.
Additional Information:
The well known extensions "templavoila" and "dam" use this method and
come along with own wizards. They will work after this patch because of
the fallback.
vg Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: overrideWithExtension.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081228/fcc4ae59/attachment.txt
More information about the TYPO3-team-core
mailing list