I’ve been looking around for awhile to see if anyone else has either accomplished this, or if it is mentioned in the documentation and I haven’t found anything that quite answers my question.
I would like to intelligently display the categories related to an entry in a regular sentence. For example, and entry is associated with three categories: Red, Blue and Green. So I would want ti displayed as:
“Entry posted on January 1, 2009 in Red, Blue and Green.”
And if there was an entry with say, only two associated categories: Red and Green. So it would be displayed as:
“Entry posted on January 1, 2009 in Red and Blue.”
So essentially, I would need ExpressionEngine to add the appropriate commas, period and the word “and” in the correct places depending on how many categories are associated with a given entry.
Is this possible?