[Typo3-dev] templates for realurl config
Ernesto Baschny [cron IT]
ernst at cron-it.de
Wed Oct 19 10:53:24 CEST 2005
ben van 't ende [netcreators] schrieb am 17.10.2005 23:25:
> At the moment you have to put the realurl config in localconf or at
> least that is what i do. My collegae already suggested to use includes.
> Wouldn't it be a good idea if you could use some special template type
> for storing that info in. I have some problems in dealing with the
> configuration as it is now. Having separate templates would also give
> authors the possibility to add some default config. I feel it has some
> advantages to include that as records in the backend.
>
> Is this a good idea?
We've already read Kaspers comments on why this has to be done in
localconf.php.
I have noticed that most RealURL configs are the same or almost the same.
What I have done is create a new extention which includes a
ext_localconf.php that configures RealURL. The advantage is that I can
install that without having to twidle in the main localconf.php, and I
have some settings that can be done through ext_conf_template.txt which
will then be regarded in the RealURL settings (e.g. if the site is
multilanguage, which languages, if tt_news is installed, which pid for
single-news, etc).
But the best would be: have RealURL provide a basic/standard
configuration already and have each extention which provide views based
on parameters provide its own RealURL configuration snipped (e.g.
tt_news could set
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['postVarSets']['_DEFAULT'][]['article']
if the admin ticks a checkbox on tt_news installation).
If interesting, I could provide my current configuration masks that
works for RealURL, multilanguage sites and tt_news, maybe they can be
included in future RealURL/tt_news versions?
Cheers,
Ernesto
More information about the TYPO3-dev
mailing list