Store raw number in database, format on ouput

Aren Cambre - September 9, 2007 - 20:25
Project:Phone (CCK)
Version:6.x-2.8
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Right now, the only display option in Views is "Default." Please give us other display options such as the ability to show US phone numbers without the leading 1.

#1

amanire - April 28, 2008 - 22:26

+1, got this request to display without a 1 from a client.

#2

pau101 - February 4, 2009 - 10:04
Version:5.x-1.5» 6.x-2.7

I love this module, but I run a very local website with no international attraction.
Would it be possible to adjust the views so that I can strip the +44 (for UK phones) or have a template where I could specify the display format?

I'm not great at PHP but if you point me in the right direction I'd be happy to have a look at doing it myself ?

#3

drewish - August 2, 2009 - 18:28
Title:Give us display options for views» Store raw number in database, format on ouput
Version:6.x-2.7» 6.x-2.8

I'd say the root of this is that the module stores the formatted number into the database rather than a raw value that can be formatted as desired.

Though you should be able to create custom formatter to display the number any way you'd like.

#4

mattyoung - September 16, 2009 - 18:53

subscribe

 
 

Drupal is a registered trademark of Dries Buytaert.