Extras catalogue
idxtoclass
Latest release 13 years ago (November 16, 2013).
About
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
Installation & usage
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
At a glance
MODX 3 compatibility unknown. Based on our testing and community reports where available.
- Developer sepiariver
- Latest release November 16, 2013 (13 years ago)
- First seen in SiteDash November 16, 2013 (13 years ago)
- License GPLv2
- MODX support 2.2 – 100.0
| Changelog | |||
|---|---|---|---|
| MODX.com |
1.0.0-beta1 |
November 16, 2013
13 years ago |
— |
|
No matching releases. |
|||