HELP Listit2 Category and Items not workin like prev ver

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

HELP Listit2 Category and Items not workin like prev ver

Post by carasmo »

Hello,

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}
What I get now is a list of the items but without the categories title before the list.

How do I make it work like before?

Thank you!!!!
uniqu3

Re: HELP Listit2 Category and Items not workin like prev ver

Post by uniqu3 »

You do not need categorized template, look at sample Category templates from 1.4. and read help about ListIt2Loader plugin (Modules -> ListIt2 Help -> Smarty plugins tab), with category action you can use show_items param.
Post Reply

Return to “Modules/Add-Ons”