[TYPO3-german] Unterschiedliche TS Konfigurationen

Nicole Cordes typo3 at cordes.co
Thu Apr 3 16:02:35 CEST 2014


Hallo Michael,

wir initialisieren die erste TypoScript-Datei immer in den Root-Templates. Damit haben wir keine Probleme.

BTW: Statische Extension-Dateien müssen manuell hinzugefügt werden. Hattest du das bedacht?


Best regards,
Nicole

--
Nicole Cordes
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org

-----Ursprüngliche Nachricht-----
Von: typo3-german-bounces at lists.typo3.org [mailto:typo3-german-bounces at lists.typo3.org] Im Auftrag von 9pm
Gesendet: Donnerstag, 3. April 2014 14:45
An: typo3-german at lists.typo3.org
Betreff: [TYPO3-german] Unterschiedliche TS Konfigurationen

Hallo zusammen!

Ich habe eine Seite nach dem Package Prinzip vom Introduction Package aufgesetzt. Nun wird es aber mehrere Domains geben, daher möchte ich gerne je nach Domain unterschiedliche TypoScript Konfigurationen laden. Ich habe folgendes in der ext_tables.php versuchst, aber leider schlägt das irgendwie fehl. Ich bekomme den "page not configured" Fehler.

if ( $_SERVER['HTTP_HOST'] == "mein.url.de" ) {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript/Seite1', 'Package'); } else {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript/Seite2', 'Package'); }

Abfragen oder Konstanten in der setup.txt sind ja leider auch nicht möglich. Hat jemand schonmal sowas gemacht und könnte mir weiter helfen?

Viele Grüße
Michael
_______________________________________________
TYPO3-german mailing list
TYPO3-german at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german



More information about the TYPO3-german mailing list