how can I format the address output for different country?

Example:

Singapore:
Country, Postal Code

Malaysia:
Postal Code, City

Is there overriding i.e. location-sg.tpl.php or location-my.tpl.php?

Comments

jessicakoh’s picture

Status: Active » Closed (fixed)
jessicakoh’s picture

Status: Closed (fixed) » Active

I tried the method on http://drupal.org/node/115323.

But it seem there is no effect on the output.

Any suggestion?

yesct’s picture

Title: Overriding output format » Overriding output format by country: i.e. location-sg.tpl.php or location-my.tpl.php
Issue tags: +Location theming

I think there are a few different approaches, please others correct or add to this list:

use a view, and add displays for each country or the countries that use a particular order, so filter by those countries, then in that display in that view, reorder the fields

or

use a template file and theme it (AH this was your idea, I see now, re-reading your question.) Does anyone use this system? or know how to implement it?

maybe that will spur some others to post more ideas of how to get this to work for you.

Anonymous’s picture

"Does anyone use this system? or know how to implement it?"

ankur’s picture

Status: Active » Closed (fixed)

This can be done through the theming API