How to get actual flags instead of country names?

If you made a template for printing or HTML export, you can offer it to the others here. You can also ask here for help about these templates
Post Reply
qtx
Posts: 8
Joined: 2009-02-07 10:19:56

How to get actual flags instead of country names?

Post 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.
antp
Site Admin
Posts: 9636
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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" />
qtx
Posts: 8
Joined: 2009-02-07 10:19:56

Post by qtx »

it's that simple?

I'll give it a shot.
Thanks!
qtx
Posts: 8
Joined: 2009-02-07 10:19:56

Post 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)
antp
Site Admin
Posts: 9636
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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 :D
Post Reply