I can’t seem to get the category count when inside the entries tag. With first attempt, count resolves to the count for entries, so it’s only “1” for the first entry:
{exp:weblog:entries weblog="{my_weblog}"}
<h1>{title}</h1>
{categories backspace="1"}
{if {count} == "1"}
in {/if}<a href="http://{path=site_index}">{category_name}</a>,
{/categories}
{body}
{/exp:weblog:entries}With second attempt, EE’s parsing order does not allow assign_variable to happen throughout the loop, so catcount is always “1”:
{exp:weblog:entries weblog="{my_weblog}"}
<h1>{title}</h1>
{assign_variable:catcount="1"}
{categories backspace="1"}
{if {catcount} == "1"}
in {/if}<a href="http://{path=site_index}">{category_name}</a>,
{assign_variable:catcount="2"}
{/categories}
{body}
{/exp:weblog:entries}Is there a way to do this? Thanks!