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 |
Jump to:
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
+1, got this request to display without a 1 from a client.
#2
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
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
subscribe