[Solved] Listit2 Pagelimit issue

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
erpee
Power Poster
Power Poster
Posts: 771
Joined: Sat Jul 07, 2007 9:22 am

[Solved] Listit2 Pagelimit issue

Post 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?
Last edited by erpee on Mon Apr 29, 2013 3:29 pm, edited 1 time in total.
Waarom zou het direct goed moeten gaan? Dan is alle lol weg ...
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Listit2 Pagelimit issue

Post 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.
User avatar
erpee
Power Poster
Power Poster
Posts: 771
Joined: Sat Jul 07, 2007 9:22 am

Re: Listit2 Pagelimit issue

Post 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}
Waarom zou het direct goed moeten gaan? Dan is alle lol weg ...
Post Reply

Return to “Modules/Add-Ons”