Check if entry is first of its category when showing entries per single category
Hello.
I'm running a Low reorder loop on a group of entries that have different categories and I'm using the "Show entries per single category" setting.
What I'm trying to do now is apply a class to the first entry of each category.
If I use:
{if count == 1} // add class {/if}
this applies a class to all the entries within the first category, and nothing to the entries in every other category. This is understandable behaviour, but is there any way I can get it to behave in the way that I have described?
Thanks in advance for any help.
Replies
Low 4 Jul 2013 13:06
So, of a big list of entries, you want to set a class when a first entry of any given category is encountered?
If so, this is not possible with Low Reorder, nor is it something that LR is meant to do, really. Or am I misunderstanding you?