Hello, (my English is not very good sorry, I will try to be very clear )
I have installed the gmap and location module.
that's worked fine,
I could display the addresses informations as street, country, phone, fax etc.
The views module permitted me to choose the adresse field with all the informations or field by field, and I could see the informations in the node too. I repeat hihi, all worked fine !
I don't know why but now, it is impossible to view the phone and fax number in the node, and the field phone and fax are not displaying in views.
I have yet the field adresse in views, which display all information adresses in one field, but I don't have the separate phone and fax fields.
I have see this issue in older versions of the location module but I don't understand because it worked before.
If someone could help me, it will be very appreciated !!
Thx. edjay
Comments
Comment #1
edjay commentedmy English is too bad for be understand or nobody has this problem ?
Comment #2
magnus.ramon commentedGot the same problem. The issue is in the file location.tpl.php, it doesn't have a $phone variable to present the content.
Just add this:
<div class="country-name"><?php echo $phone; ?></div>at the end of the current code and it will show the phone number.
Then you can customize the vizualization as you need.
Alway here to help.
Comment #3
edjay commentedThx for your response magnus.ramon, it's nice to help me.
Your solution work for the node content and this already a good point yeah, but there is still the problem with views module integration.
In fact, impossible to select the fields phone and fax.
What's more the views address field (which show all location fields normally) don't show phone/fax fields.
maybe the integration with viewsapi or locationapi is bugging or a weight problem, I don't know but I search ^^
same problem referenced in :
http://drupal.org/node/404280
http://drupal.org/node/403194
Thx to all and cheers :)
Comment #4
yesct commentedmarked as a duplicate
#387198: No Phone Field in User Accounts
Comment #5
bdragon commentedDuplicate of #299449: [master]Display of Phone & Fax numbers.