I want to output the word equivalent of a number for each entry.
So instead of 1,2,3,4… I want one, two, three, four
I was hoping for something like this?
{count type="name"}
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
November 06, 2012 11:29am
Subscribe [2]#1 / Nov 06, 2012 11:29am
I want to output the word equivalent of a number for each entry.
So instead of 1,2,3,4… I want one, two, three, four
I was hoping for something like this?
{count type="name"}
#2 / Nov 07, 2012 3:54pm
Hi thefifthlion,
I was hoping for something like this?
{count type=“name”}
ExpressionEngine doesn’t have a feature like that at this time.
I looked on Devot:ee but couldn’t find anything that would do this either.
Cheers,
#3 / Nov 07, 2012 4:51pm
thefifthlion,
I did a real quick search and found the below link:
http://www.karlrixon.co.uk/writing/convert-numbers-to-words-with-php/
You could write a simple plugin that could use the code from above.
#4 / Nov 08, 2012 1:01pm
Hi VIM Interactive,
Excellent work there! Thanks!
#5 / Nov 12, 2012 7:07pm
thanks for the help, you can mark this one closed
#6 / Nov 14, 2012 5:23pm
Hi thefifthlion,
Excellent.
If oyu need anything else, please let me know!
Cheers,