in my template I put
Code: Select all
{CGBlog category="events"}For example, if that tag will output 3 items, I need that number in a smarty variable.
Which is the best way to do it?
thanks
Code: Select all
{CGBlog category="events"}Code: Select all
{capture assign='articlecount'}{$items|@count}{/capture}Code: Select all
{assign var="cat_count" value=$items@|count}Code: Select all
{assign var="cat_count" value=$items|@count}