Project

General

Profile

Actions

Bug #17176

closed

TSref: [globalString = HTTP_HOST= www.typo3.com] does not always work

Added by Michael Knabe over 17 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Should have
Category:
Documentation
Target version:
-
Start date:
2007-07-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Here
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/4/1/#id3526981
it says that you can access HTTP_HOST in conditionals using
[globalString = HTTP_HOST=www.typo3.com]
but that didn't work for me. I had to use
[globalString = _SERVER|HTTP_HOST=www.typo3.com]
instead. I think this is a result of globals=off.
Maybe that should be noted in the documentation. Or is it a typo3 bug?

Typo3 4.1.1
(issue imported from #M6015)

Actions #1

Updated by Jörg Leshel about 15 years ago

thanks for the hint
I think global strings should be wrapped. Typoscript syntax shouldn't depend on php configuration.

Actions #2

Updated by Francois Suter almost 15 years ago

Correct.

Changed exampe to:

[globalString = IENV:HTTP_HOST = www.typo3.com]

Actions #3

Updated by Francois Suter almost 15 years ago

Committed to documentation trunk in revision 6611

Actions #4

Updated by Francois Suter almost 15 years ago

Fixed in version 4.3.0

Actions

Also available in: Atom PDF