Closed (fixed)
Project:
Location
Version:
6.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Mar 2009 at 22:42 UTC
Updated:
4 Jul 2010 at 23:54 UTC
All is in the title ! But for the search engine :
How to display the complete state/province of location cck field instead code ?
Comments
Comment #1
uprojects commentedSo nobody has this problem !!!
Comment #2
vm commentedI don't understand the question. What do you mean code?
When I select a state or province I don't see any code only the state or province I've chosen.
Comment #3
adulion commentedi have the same problem.. the thing is that the province in the db is being traimmed down to the first 3 charachters.. so its the insert code and not the display code
Comment #4
adulion commentedwhat file contains the insert query for the actual province? am struggly with the mass of files
Comment #5
yesct commentedmaybe related #366955: Japan Provinces Return Numbers, Not Abbreviations ???
#349647: Get Countryname ???
the location.xx.inc files might have something in them.
Comment #6
yesct commentedmarked #409752: province as a duplicate of this issue
Comment #7
shenzhuxi commentedIn 6.x-3.1-rc1, Just change the 19 line of location.tpl.php into:
$city_province_postal[] = ''. $province_name .'';
Comment #8
dboulet commentedThanks shenzhuxi, that did it. All one has to do is copy location.tpl.php to their theme folder and make the adjustment mentioned above.
Comment #9
yesct commentedtagging.
Glad this worked out for you.
Comment #11
barry_fisher commentedIf anyone is looking for a solution to make the full descriptions appear (instead of the state/province codes) on the node edit form then I found that you can alter this behaviour with hook_locationapi().
Notice the old '#default_value' commented out with a new line calling the location_province_name() function.
Hope this helps someone.
Barry