1
DrMartinus
$country variable in module weblinks
  • 2008/10/18 16:52

  • DrMartinus

  • Just popping in

  • Posts: 8

  • Since: 2007/9/9 9


Hi,

I wanted to adjust a template of the modules "weblinks", because it uses yahoo map links which don't help me in my German setting. So I wanted to add a section that is used when the $country variable is set to german. However, it doesn't seem to work.

There is a line like this which seems to be used:
<{if $country == 'usa'}>

but if I insert a section like this:
<{if $country == 'german'}>
testing
<{/if}>


nothing happens. I tried also $country == 'de', but had no luck. Where do I find a reference guide for these variables?

2
sailjapan
Re: $country variable in module weblinks

'germany' ?
Never let a man who does not believe something can be done, talk to a man that is doing it.

3
ghia
Re: $country variable in module weblinks
  • 2008/10/19 1:31

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


or 'Deutschland'!

4
DrMartinus
Re: $country variable in module weblinks
  • 2008/10/19 3:49

  • DrMartinus

  • Just popping in

  • Posts: 8

  • Since: 2007/9/9 9


Both didn't work, unfortunately. Where would this variable be set? Is it predefined?

5
ghia
Re: $country variable in module weblinks
  • 2008/10/19 8:28

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


It could be case sensitive, so it can be also deutschland or Germany.
Otherwise do a search trough the module files for the word usa or $country.

6
stefan88
Re: $country variable in module weblinks
  • 2008/10/19 14:44

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Why not use smarty debug ...?

..

Login

Who's Online

351 user(s) are online (291 user(s) are browsing Support Forums)


Members: 0


Guests: 351


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits