[TYPO3] Typoscript - get domain name

Bas van der Togt bas.vander.togt at efocus.nl
Fri Jun 1 16:11:41 CEST 2007


Brian Bendtsen wrote:
> Hi
> 
> Is it possible to do something like this in Typoscript:
> 
> if domain name = mentor-it.dk then
> plugin.tx_lumogooglemaps_pi1.google_api_key = 
> ABQIAAAA_UBe0G6chCGKq1CbqlhqxhRHzN24XrT61zA8MWVZbIlBTY9zUxRpfc-ae7cTqXQEDvDGNTXN4N98sg 
> 
> else if domain_name = mentorit.dk then
> plugin.tx_lumogooglemaps_pi1.google_api_key = 
> ABQIAAAA_UBe0G6chCGKq1CbqlhqxhRDdQEaujmDR_Jv1A-YKViph57DuhTz2d5mNrYaD9j_2t72aWAmMVpmXw 
> 
> 
> I know how to make an if-else, but is it possible to get the domain name 
>  by which the user has reached my site?
> 
> /Brian

Hi Brian,

[globalString= IENV:HTTP_HOST = *mentor-it.dk]
plugin.tx_lumogooglemaps_pi1.google_api_key = 
ABQIAAAA_UBe0G6chCGKq1CbqlhqxhRHzN24XrT61zA8MWVZbIlBTY9zUxRpfc-ae7cTqXQEDvDGNTXN4N98sg
[end]

[globalString= IENV:HTTP_HOST = *mentorit.dk]
plugin.tx_lumogooglemaps_pi1.google_api_key = 
ABQIAAAA_UBe0G6chCGKq1CbqlhqxhRDdQEaujmDR_Jv1A-YKViph57DuhTz2d5mNrYaD9j_2t72aWAmMVpmXw
[end]

Kind regards,
Bas


More information about the TYPO3-english mailing list