About idxtoclass
Converts numbers to text, for use in classnames for example.
Based almost entirely on work by Karl Rixon:
http://www.karlrixon.co.uk/writing/convert-numbers-to-words-with-php/
For more info see: http://www.sepiariver.ca/blog/modx-web/numbers-to-class-names-in-modx
Information
Released
November 16, 2013
Supported Database
MySQL
License
GPLv2
Supported Versions
2.2 - Current
Downloads
919
Instructions
Install via Package Management.
Example usages:
[[+id:idxtoclass]]
Where [[+id]] === 3
// third
Where [[+id]] === 123456789
// one hundred and twenty-three million, four hundred and fifty-six thousand, seven hundred and eighty-nine
[[+id:idxtoclass=`3`]] options set modulus
Where [[+id]] === 3
// third
Where [[+id]] === 123456789
// third
[[idxtoclass?input=`[[+id]]` &options=`3` &type=`cardinal`]]
Where [[+id]] === 3
// three
Where [[+id]] === 123456789
// three