• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: LISE module pagelimit
PostPosted: Thu May 11, 2017 12:24 am 
Offline
New Member
New Member

Joined: Sun Mar 05, 2017 1:22 am
Posts: 4
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}


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: LISE module pagelimit  Topic is solved
PostPosted: Thu May 11, 2017 7:21 am 
Offline
Dev Team Member
Dev Team Member

Joined: Mon Nov 28, 2011 9:29 am
Posts: 2722
Location: The Netherlands
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
HostPapa CMS Made Simple hosting