Issue Feature Closed

#19973Add gp as an alternative to gpvar in TS getText for a more consistent naming scheme

Steffen Müller 02/05/09, 11:50 updated 08/06/10, 13:23

Description

Problem:
The processing of GET/POST variables in TypoScript does not have a consistent naming scheme:
– TS conditions use GP for GET/POST vars in globalVar and globalString.
– TS getText uses GPvar
User might be confused by an unconsistent naming scheme.

Solution:
Since t3lib_div::GPvar is deprecated, GP should be also used in getText. For backward compatibility, leave gpvar as is and add gp as an alternative. Add a hint in TSref to use gp instead of gpvar in getText.

We’d also have to change TSref chapter on conditions:

IMPORTANT NOTE ON globalVar and globalString:
(…)
Caring about this means that you would get values like HTTP_HOST by getenv(), you would retrieve GET/POST values with t3lib_div::GPvar().
(…)
(issue imported from #M10357)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.