[TYPO3] EXT: demc_GeoIP --> use of country in TypoScript condition
Dennis Schulz
Dennis.Schulz at gmx.com
Tue Dec 5 13:23:34 CET 2006
Hello list,
please see also the posting in the T3-German newsgroup
crossPosting: --> [TYPO3-german] EXT: dmc_geoip --> Land in TS Condition
nutzen.
I want to use different page content based on the resolved Country from
dmc_GeoIP.
http://typo3.org/documentation/document-library/extension-manuals/dmc_geoip/1.0.1/view/toc/0/
I do not want to use the extensions redirect function.
(If I use it, it works!)
Reading the manual pointed out, the two letter country code, if
resolved, is found in TS field (as String):
//
modules.tx_dmc_geoip.countryOfResidence
//
I have tried to use this field as condition, but it does not work.
The same is, if I tried to use the field directly as TEXT field in the
content.
My code:
***************************
modules.tx_dmc_geoip{
redirect = 0
#country.rootpages{
#US = 88
#DE = 88
#}
}
temp.GEODATA = TEXT
temp.GEODATA.value = US
[modules.tx_dmc_geoip.countryOfResidence = DE]
temp.GEODATA.value = DE
[GLOBAL]
****************************
In the extensions php-file
//
ext/dmc_geoip/pi1/class.tx_dmcgeoip_pi1.php
//
I have found this:
$this->TSFE->tmpl->setup['modules.']['tx_dmc_geoip.']['countryOfResidence']=
$returnValue;
If I use the php - "PRINT" function, to display the "$returnValue" var,
I get the CounryCode displayed.
Where is my problem?
Thanks in advance.
Dennis
please see also the posting in the T3-German newsgroup
crossPosting: --> [TYPO3-german] EXT: dmc_geoip --> Land in TS Condition
nutzen.
More information about the TYPO3-english
mailing list