[TYPO3-english] Conditions hostname
Roberto Torresani
erreti at gmail.com
Wed Nov 11 17:07:47 CET 2009
Hi Clay!
This solution is that I need! It works!
Thanks
Roberto
2009/11/11 Clay Sissing <clay at kdweb.co.uk>
> Can try this
>
> [globalVar=IENV:TYPO3_HOST_ONLY=www.domain1.com]
> config.baseURL = http://www.domain1.com/
> [end]
>
> [globalVar=IENV:TYPO3_HOST_ONLY=www.domain2.com]
> config.baseURL = http://www.domain2.com/
> [end]
>
> Thanks
> Clay
>
>
> -----Original Message-----
> From: typo3-english-bounces at lists.typo3.org
> [mailto:typo3-english-bounces at lists.typo3.org] On Behalf Of Roberto
> Torresani
> Sent: 11 November 2009 15:59
> To: TYPO3 English
> Subject: Re: [TYPO3-english] Conditions hostname
>
> Hi Joh!
> Thanks for the answer
> my code is out of braces: is config.baseURL and not page.config.baseURL
> http://typo3.org/documentation/document-library/references/doc_core_tsre
> f/4.2.1/view/1/7/#id4324729<http://typo3.org/documentation/document-library/references/doc_core_tsre%0Af/4.2.1/view/1/7/#id4324729>
>
> The spelling of the domains are correct
>
> Thanks
> Roberto
>
>
> 2009/11/11 JoH asenau <info at cybercraft.de>
>
> > > I try with the follow typoscript:
> > >
> > > config.baseURL = http://www.domain.it/
> > > [hostname = www.domain.eu]
> > > config.baseURL = http://www.domain.eu/
> > > [end]
> > >
> > > But if I connect in '.it' or in '.eu' I have always baseURL to '.it'
> >
> > Check if the hostname really is www.domain.eu since it has to match
> > exactly.
> > And check if you set the condition inside any curly braces.
> >
> > Something like this won't work:
> >
> > page = PAGE
> > page {
> > config.baseURL = http://www.domain.it/
> > [hostname = www.domain.eu]
> > config.baseURL = http://www.domain.eu/
> > [end]
> > }
> >
> > While this one will:
> >
> >
> > page = PAGE
> > page {
> > config.baseURL = http://www.domain.it/
> > }
> >
> > [hostname = www.domain.eu]
> > page.config.baseURL = http://www.domain.eu/
> > [end]
> >
> > HTH
> >
> > Joey
> >
> > --
> > Wenn man keine Ahnung hat: Einfach mal Fresse halten!
> > (If you have no clues: simply shut your gob sometimes!)
> > Dieter Nuhr, German comedian
> > Xing: http://contact.cybercraft.de
> > Twitter: http://twitter.com/bunnyfield
> > TYPO3 <http://twitter.com/bunnyfield%0ATYPO3> cookbook (2nd edition):
> > http://www.typo3experts.com
> >
> >
> > _______________________________________________
> > TYPO3-english mailing list
> > TYPO3-english at lists.typo3.org
> > http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
> >
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list