LISE module pagelimit
Posted: Thu May 11, 2017 12:24 am
				
				Hi all,
I am trying to summarize all the news items on my website using the LISE module on CMSMS version 2.x. I only wanted a few items to show up per page so I used the pagelimit="5", however, after moving onto the next page, the previous page still shows up.
Code calling the LISE summary template:
Code in the summary template:
			I am trying to summarize all the news items on my website using the LISE module on CMSMS version 2.x. I only wanted a few items to show up per page so I used the pagelimit="5", however, after moving onto the next page, the previous page still shows up.
Code calling the LISE summary template:
Code: Select all
{LISExxxxx template_summary="events-all" start="1"}Code: Select all
{if $items|@count > 0}
	{if $pagecount > 1}
	<!-- pagination -->
	<p>
		{if $pagenumber > 1}
			{$firstpage} {$prevpage} 
		{/if}
			{foreach from=$pagelinks item=page}
				{$page->link}
			{/foreach}
		{if $pagenumber < $pagecount}
			 {$nextpage} {$lastpage}
		{/if}
	</p>
	<!-- pagination //-->
	{/if}
	
	<!-- items --> 
	{foreach from=$items item=item}
	<!-- item -->
                    <div class="row">
                    <!--event-->
                    <div class="panel panel-default event">
                      <div class="item">
                        <div class="rsvp col-xs-2 col-sm-2 {$item->image_orientation}" style="background-image: url('uploads/{$item->image}'), url('uploads/images/Press/default.jpg'); background-repeat: no-repeat; background-position:center;">
                        </div>
                        <div class="info col-xs-8 col-sm-7">
                          <h4>{$item->press_title}</h4>
                          <div class="event-info">
                          <p>{$item->release_date|cms_date_format}, <i>{$item->media}</i>
                          {if isset($item->description)}
                            <p class="description">{$item->description}</p>
                          {/if}
                          {if isset($item->link)}
                          <p><a href="{$item->link}" class="item-title">Read More</a> </p>
                          {/if}
                          </div>
                        </div>
                      </div>
                    </div>
                    <!--event-->
                    </div>
	{/foreach}
	<!-- items //-->
{/if}