Author Pane 6.x-1.x-dev (2009-04-23)
Location 6.x-3.1-rc1
I have country, state/province, and city options enabled for user accounts. However, these data are not showing up in the Author Pane block. Is there something else I need to configure? Thanks.
Comments
Comment #1
atelier commentedI was able to display location data using the $location_user_location variable that's created in the location sub-module. However, this is a string variable with hard-coded data and markup. Does anyone know how I would go about accessing specific location data elements (i.e. country_name, city, etc.) within the Author Pane block?
Comment #2
atelier commentedChanging status to closed to keep Michelle's issue queue clean.
I changed the Location module's location.tpl.php template to provide the output I needed, then called the $location_user_location variable within the author pane block. This isn't ideal because it changes all uses of location.tpl.php, but since I manually theme other references to location fields, this will work for the moment.
If the developer of the location sub-module stumbles onto this post, I would appreciate any insight into how I might be able to use an array variable with individual location elements. Thanks!