Topic: Change how {category-id} is printed
I am trying to use the {category-id} tag to set CSS classes for each entry, but I have a hard time finding the place in the php code where I change it. Currently, if you add {category-id} to a .tpl template, it will print the associated categories as "1,2,3,5,12" i.e. a sequence only delimited by a comma.
What I would like to do is to have each entry posted using a template file looking somehting like (simplified):
<div class="{category-id}">{title}{short-story}</div>
but you can't have commas in a class declaration in CSS, so I need to change what is being printed. Ideally the code would add some prefix in front of the category number and a space after the number, so I would get somehing like this in my final HTML output, when I use the above code from the .tpl:
<div class="cat1 cat2 cat3 cat5 cat12">Title - Some short story</div>
Where do I find the code that adds the comma to the {category-id} when used in a .tpl file to write my HTML?