[TYPO3-bugs] open bug #19739
Franz Holzinger
franz.holzinger at ttproducts.de
Thu Dec 18 15:53:38 CET 2014
Hello Benjamin,
> I really don't see this "required" for the core. This are the reasons why:
This matter has already been discussed on the TYPO3 Core list in the
year 2010:
http://lists.typo3.org/pipermail/typo3-team-core/2010-October/043701.html
and even before in the former bugtracker.
Why is the rediscussed 6 years later?
> 1. If you need to ship custom TypoScript code based if an extension is
> loaded, this should be done in ext_localconf.php with certain
> conditions. Why? Adding a lot of TypoScript conditions (even shipped
> with an extension) leads to a lot of multiple caching, thus I'm against
> using TS condition a lot.
However you can not easily add TypoScript inside of a PHP file
ext_localconf.php. And it is not recommended to modify TYPO3 extensions.
This is not user friendly (Kaspar has always demanded this). If you
forget about it and install another version of that extension, then
everything is lost.
> 2. Checking for an extension should be done at ext_localconf.php time.
> E.g. A lightbox extension ships an adaption for tt_content and tt_news,
> adding TypoScript as static includes, for each extension. This is how
> most people do it these days, or with options in Constant Editor.
But each extension has a file setup.txt with the default TypoScript. I
want to add a condition here and not inside of a PHP file.
I want to set another TypoScript if another extension has been
installed. So the user would use another TypoScript by default without
having to take care about anything. It is much more complicated to
program these things in PHP than with a simple TypoScript condition.
> 3. I have - seriously - quite some TS conditions that are great for our
> projects. But: I can register my own now, in a very nice way and ship it
> as an extension, which I do.
>
> I hope the ext_localconf.php solution works for your needs.
Yes, this is easy for you as a long years TYPO3 profesional. But more
than 90% of the TYPO3 users do not program in PHP. I cannot add things
about PHP to the manual of an extension: Nobody would read the manual.
I hope you accept to reopen it even if you won't need it.
- Franz
More information about the TYPO3-team-bugs
mailing list