Page 1 of 1
How to get actual flags instead of country names?
Posted: 2009-02-07 10:27:22
by qtx
What's the trick to show actual country flags instead of showing the country names?
I'm working on a template and I haven't quite figured out how to do that..
Any help would be grateful..
qtx.
Posted: 2009-02-08 13:50:35
by antp
You mean with a simple HTML export?
You could give to the flags files the name of the countries, e.g. if you have "United Kingdom" as country, name the UK flag "United Kingdom.gif" and put in the export template something like:
Code: Select all
<img src="flags/$$ITEM_COUNTRY.gif" alt="$$ITEM_COUNTRY" title="$$ITEM_COUNTRY" />
Posted: 2009-02-08 15:35:05
by qtx
it's that simple?
I'll give it a shot.
Thanks!
Posted: 2009-02-09 10:21:27
by qtx
Does it work with multiple "countries" too?
Now when I have more then 1 country it doesn't work..
for example it just displays: USA, Germany, UK (without any flags)
Posted: 2009-02-09 21:14:59
by antp
Well, then it won't work, except if you make special images for combination of country flags...
e.g. "USA, Germany, UK.gif"
but that becomes quite complicated