Hello,
This may be a no-brainer, but I can’t seem to figure it out.
I am working with some jquery to do client-side sorting based on category id’s.
The category_id tag is placed inside a div class like this:
<div class="sort all {categories limit="2"}{category_id}{/categories}">When the code is rendered, it looks like this:
<div class="sort all 25">Note the number 25 being the category id of the selected category.
I run into a problem when I have multiple categories.
For example, I have an entry that has 2 categories assigned with id’s of 25 and 28, it shows like this in the code:
<div class="sort all 2528">The multiple categories butt up to each other.
For my jquery sort to work, I need a space between each category_id like this:
<div class="sort all 25 28">The categories are not nested. They are all in the root.
Let me know if you need any additional info.
I am using EE version 2.1.3 20101220
Thanks in advance for any insight.
Best Regards