[TYPO3-core] RFC: #15692: Allow other filename for module dispatcher than index.php

Ernesto Baschny [cron IT] ernst at cron-it.de
Mon Sep 13 14:39:58 CEST 2010


Jigal van Hemert schrieb am 13.09.2010 13:51:

> On 13-9-2010 0:44, Steffen Kamper wrote:
>> The module dispatcher (mod.php) requires hardcoded 'index.php'.
>>
>> If you use other filenames in modern filestructure, there is no
>> possibility to use different filename.
> 
> Hmm... why? Is there a use case where this is required?
> It seems this is a move away from the new paradigm :-) of using
> convention over configuration.

We currently have these backend modules registered:

about/mod/conf.php:$MCONF['script']='index.php';
aboutmodules/mod/conf.php:$MCONF['script'] = '../../../alt_intro.php';
belog/mod/conf.php:$MCONF['script']='_DISPATCH';
beuser/mod/conf.php:$MCONF['script']='_DISPATCH';
cms/layout/conf.php:$MCONF['script']='db_layout.php';
cshmanual/mod/conf.php:$MCONF['script'] = $BACK_PATH . 'view_help.php';
dbal/mod1/conf.php:$MCONF['script'] = '_DISPATCH';
em/mod1/conf.php:$MCONF['script']='index.php';
filelist/mod1/conf.php:$MCONF['script']='file_list.php';
func/mod1/conf.php:$MCONF['script']='index.php';
indexed_search/mod/conf.php:$MCONF['script']='index.php';
info/mod1/conf.php:$MCONF['script']='index.php';
install/mod/conf.php:$MCONF['script']=$BACK_PATH.'install/index.php';
list/mod1/conf.php:$MCONF['script']='db_list.php';
lowlevel/config/conf.php:$MCONF['script']='index.php';
lowlevel/dbint/conf.php:$MCONF['script']='index.php';
opendocs/mod/conf.php:$MCONF['script'] = $BACK_PATH.'alt_doc.php';
perm/mod1/conf.php:$MCONF['script']='index.php';
recycler/mod1/conf.php:$MCONF['script']='_DISPATCH';
reports/mod/conf.php:$MCONF['script'] = '_DISPATCH';
scheduler/mod1/conf.php:$MCONF['script'] = '_DISPATCH';
setup/mod/conf.php:$MCONF['script'] = 'index.php';
taskcenter/task/conf.php:       $MCONF['script']='_DISPATCH';
tsconfig_help/mod1/conf.php:$MCONF['script']='index.php';
tstemplate/ts/conf.php:$MCONF['script']='index.php';
version/cm1/conf.php:$MCONF['script'] = 'index.php';
version/ws/conf.php:$MCONF['script'] = 'index.php';
viewpage/view/conf.php:$MCONF['script']='frameset.php';

You see, some were already converted to _DISPATCH. The rest will be
converted step by step, like in #15686 (list). You can also see in that
list that some modules use filenames other than "index.php". So this
addition just allows that and thus keep the current filenames for our
backend modules.

Thinking more about that, I am also not that convinced if we need that
hack. It would be cleaner to just rename the files to "index.php", isn't it?

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list