Closed (fixed)
Project:
Location
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Aug 2008 at 21:08 UTC
Updated:
2 Jan 2014 at 23:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ambereyes commentedOkay. I found the problem. Although the api call does pull both the phone and fax values, they were not being processed in the preprocess function, template_preprocess_location, beginning at line 1886 of location.module.
I was not sure what function to use in a module invoke call to add them in programmatically, so I just added them to the list, i.e.
So this starting at line 1918
became this
I also added the following to the location.tpl.php file
I hope this helps someone else. Obviously, you would need to modify the tpl file to fit your requirements.
Comment #2
bdragon commentedBlessing. Duplicates marked.
#188930: phone number and fax number not showing
#193573: How do I get phone numbers to display?
Comment #3
nvoyageur commentedI think your
</DIV>tags get printed even if there are no phone or fax info. This broke my site layout. I've used the following in location.tpl.php instead and it works when a phone and/or fax is not present.Comment #4
ambereyes commentedYeah, you are right.
My design had the same problem, but I forgot to post the modified version. Sorry!
Your fix matches up with what my designer suggested.
Comment #5
zet commentedbdragon, why you did not included this patch in the new version ?
Comment #6
zetxek commentedIf you want your "Phone" and "Fax" labels to be translatable, just add t() around the labels (it's the way it should be if you have a non-english drupal):
Comment #7
yesct commentedTagging.
Could someone check these are not fixed in the latest dev release and then make a patch http://drupal.org/patch/create
Comment #8
jenna.tollersonI can confirm that this is still not working in the latest dev release.
If I understood exactly what needed to be patched I would try to make one, but the suggestions here (and in the duplicate threads) do not seem to correlate with the latest release, so I feel a little lost.
Comment #9
yesct commentedI think the file that needs to be patched is the location.tpl.php
Comment #10
darrenmothersele commentedI can confirm that the template_preprocess function is fine, but the changes still need to be made to location.tpl.php as per comment #6.
Comment #11
jenna.tollersonCreated a patch against 5.x-3.x-dev.
Comment #12
yesct commentedComment #13
bdragon commentedFinally fixed.
Integration with the hcard microformat data is in as well.
http://drupal.org/cvs?commit=244076
http://drupal.org/cvs?commit=244078
http://drupal.org/cvs?commit=244080
Comment #14
bdragon commentedDuplicates marked.
#524298: location phone and fax
#481528: How to add the PHONE field from the location module to GMAP using VIEWS.
#406776: Location phone and fax module