CMS Made Simple Forums
https://forum.cmsmadesimple.org/

LISE module pagelimit
https://forum.cmsmadesimple.org/viewtopic.php?f=20&t=76582
Page 1 of 1

Author:  jobravo [ Thu May 11, 2017 12:24 am ]
Post subject:  LISE module pagelimit

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:
{LISExxxxx template_summary="events-all" start="1"}


Code in the summary template:
Code:
{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}

Author:  velden [ Thu May 11, 2017 7:21 am ]
Post subject:  Re: LISE module pagelimit  Topic is solved

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.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/