LISE module pagelimit

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
jobravo
New Member
New Member
Posts: 4
Joined: Sun Mar 05, 2017 1:22 am

LISE module pagelimit

Post by jobravo »

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: Select all

{LISExxxxx template_summary="events-all" start="1"}
Code in the summary template:

Code: Select all

{if $items|@count > 0}

	{if $pagecount > 1}
	<!-- pagination -->
	<p>
		{if $pagenumber > 1}
			{$firstpage}&nbsp;{$prevpage}&nbsp;
		{/if}
			{foreach from=$pagelinks item=page}
				{$page->link}
			{/foreach}
		{if $pagenumber < $pagecount}
			&nbsp;{$nextpage}&nbsp;{$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}
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3273
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: LISE module pagelimit

Post by velden »

Not sure what you mean exactly by 'the previous page still shows up'.

Wild guess:

'Display details inline (replaces module tag instead of {content}):' in the bottom of the Options tab of your LISExxxxx instance. Enable that option and try again.
Locked

Return to “Layout and Design (CSS & HTML)”