It would be nice if I could convert an existing text field containing a number into a Formatted Number. Examples where this could be useful include but are not limited to:

  • Data that existed in a Drupal instance before this module was used on a site.
  • Data created or imported with a module that does not support this CCK type, such as the Node import module.

Comments

markus_petrux’s picture

This CCK field stores numbers internally in plain PHP/SQL format. The formatting occurs only on the input element, or when the field is displayed. So if you need to populate these fields programmatically, all you need to do is give it a PHP number without formatting options.

I haven't used the Node import module, but I guess it should work with these fields. If you have tried and it doesn't work, which was the problem/error exactly?

Aren Cambre’s picture

#446866: Support a number type other than integer

But I think this could still be useful because it would support natural evolution of Drupal content types. Nice module, by the way!

markus_petrux’s picture

Status: Active » Postponed

Ok, I'll subscribe to the other feature request to see if there's anything that this module needs to expose so that it can be compatible with Node import.

markus_petrux’s picture

Status: Postponed » Closed (won't fix)

The other issue doesn't move much, so I'm switching the status here to won't fix, at least until there's a bit more light on what's really necessary. This issue can be re-opened when that happens.