I'm using 1.4 of Listit2 and I'm very confused. Previously I was pretty good with 1.3.2. I read the docs and added an alias called 'category' and populated the categories. I modified the summary template "categorized" and with 1.3.2 I got what I intended: a list of the items with the category name above each item:
Category Name 1
Item 1
Item 2
etc.
Category Name 2
Item 1
Item 2
etc.
Here is the template:
Code: Select all
{assign var='current_category' value=''}
{foreach from=$items item=item}
{if $current_category != $item->category_alias}
<h3 class="title">{$item->category_name|cms_escape}</h3>
{assign var='current_category' value=$item->category_alias}
{/if}
<h6>{if $item->fielddefs.link_url.value}<a href="{$item->fielddefs.link_url.value}" target="_blank" title="opens in a new window">{/if}{$item->title|cms_escape}{if $item->fielddefs.link_url.value} <i class="icon-popup"></i></a>{/if}</h6>
{/foreach}
How do I make it work like before?
Thank you!!!!

