Page 1 of 1

[Solved] Listit2 Pagelimit issue

Posted: Mon Apr 29, 2013 2:18 pm
by erpee
I've created a Listit2 module which now has over 50 entries.
I want to show the titles of the entries using this template (titlelist):

Code: Select all

{foreach from=$items item=item}
	{$item->fielddefs.Titles.value|cms_escape}<br />
{/foreach}
I call this template using:

Code: Select all

{ListIt2Mymod pagelimit="10" summarytemplate='titlelist'}
The module-help states that if there are more entries then are shown using "pagelimit" a sort of pagination should appear.

BUT... only the 10 titles are displayed and no pagination...
Am I missing something?

Re: Listit2 Pagelimit issue

Posted: Mon Apr 29, 2013 2:27 pm
by Jos
I guess you should add smarty tags in your ListIt2-template to show the pagination.

Maybe there is somekind of default template which you can copy/paste, or use {get_template_vars} in the ListIt2 template to show all the available variables.

Re: Listit2 Pagelimit issue

Posted: Mon Apr 29, 2013 3:28 pm
by erpee
Thanks for the tip ...
I found it in the default template ... ^-^

I had to add this code at the end of my template...

Code: Select all

{if $pagecount > 1}
<p>
{if $pagenumber > 1}
{$prevpage}
{/if}
{foreach from=$pagelinks item=page}
    {$page->link}
{/foreach}
{if $pagenumber < $pagecount}
&nbsp;{$nextpage}
{/if}
</p>
{/if}