Can anyone help me find a solution here? I’m trying to generate a sequential list of entries grouped by category.
I’m using this code to generate a marker array:
{exp:channel:category_archive channel="membership_directory" style="linear" show_empty="no"}
{categories}
{exp:channel:entries channel="membership_directory" category="{category_id}”}
markers[{count}] = SetMarker({count}, {entry_id}, {latitude}, {longitude}, ‘{title}’, ‘cat{category_id}’, ‘blank’);
{/exp:channel:entries}
{/categories}
{/exp:channel:category_archive}
As you can see from the results here, I can get the array working fine, with the exception of the number sequence. The count starts over as each new category begins. Since I can’t have more than one marker with the same SetMarker number, I need the sequence to continue, regardless of when the next category begins.
Is there a better way to structure this, or an alternate counting method I can use?
Thanks,
Porter.