Views numeric extras

Categories

Component ID

2165831

Component name

Views numeric extras

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

336

Component created

Component changed

Component body

Views numeric extras provides extended options for numeric fields in Views:

  • If the number is less than 1 million, divide by 1 million and add an option suffix.
  • If the number is more than 1 million, divide by 1 million and add an option suffix.
  • If the number is more than 1 billion, divide by 1 billion and add an option suffix.
  • If the number is less than 1 trillion, divide by 1 trillion and add an option suffix.
  • Expose float and decimal field options to integers as well because of the optional dividing.
  • Optionally make positive numbers green.
  • Optionally make negative numbers red.

These options will not be available for Number fields provided by the Field API.

For a real-world example of a site using this module see Vizala, a site with numerous statistics about the world's countries.

Sponsored by

herd45