All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Check if entry is first of its category when showing entries per single category

Benjamin E 4 Jul 2013 10:26 question, complete

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

  1. 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?