Pretty url and pagination LISE

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Grzelu
New Member
New Member
Posts: 2
Joined: Mon Apr 06, 2020 6:27 pm

Pretty url and pagination LISE

Post by Grzelu »

Hello.

I use pagelimit and $pagecount to make pagination for my LISE module. Problem is with pretty urls.
It shows right amount of pages and it send to some link, but show same elements on page, and leave first <li> active.

Code: Select all

{if $items|@count > 0}
  {foreach from=$items item=item}
  <section class="articles-item row">
    <div class="articles-item-description content col">
      <h3 class="heading-second heading-before">{$item->title}</h3>
      {if $item->fielddefs.summary.value}{$item->fielddefs.summary.value}{/if}
      {if $item->fielddefs.extension.value}<a href="{$item->url}" class="button">Zobacz artykuł</a>{/if}
    </div>
    {if $item->fielddefs.img.value}
    <figure class="articles-item-img col">
      <img src="uploads/images/article/{$item->fielddefs.img.value}" {if $item->fielddefs.alt.value}alt="{$item->fielddefs.alt.value}"{/if}>
    </figure>
    {/if}
  </section>
  {/foreach}
{else}
  <h2 class="heading-second">Brak artykułów dla tej kategorii.</h2>
{/if}
{if $pagecount > 1}
<div class="page-list row">
  {if $pagenumber > 1}
  <nav class="col prev-col">
    <h2 class="hidden">Nawigacja poprzedniej strony</h2>
    <ul>
      <li>{$prevpage|replace:'href':'class="prev icon" href'|replace:"<":""}</li>
    </ul>
  </nav>
  {/if}
  <nav class="col pages">
   <h2 class="hidden">Nawigacja stron</h2>
    <ul>
    {foreach from=$pagelinks item=page}
      <li{if $pagenumber == $page@iteration} class="active"{/if}>{$page->link}</li>
    {/foreach}
    </ul>
  </nav>
  {if $pagenumber < $pagecount}
  <nav class="col next-col">
   <h2 class="hidden">Nawigacja do nastepnej strony</h2>
    <ul>
      <li>{$nextpage|replace:'href':'class="next icon" href'|replace:">":""}</li>
    </ul>
  </nav>
  {/if}
</div>
{/if}

Code: Select all

{LISEarticle template_summary="summary" detailpage="rozwinięcie-artykułu" pagelimit="4"}

Here is not working (with pretty urls)
http://szablon.compsoul.pl/geth/aktualno%C5%9Bci.html

Here is working (without pretty urls)
http://szablon.compsoul.pl/geth/aktualn ... 5%82y.html

CMS v.: 2.2.12
LISE v.: 1.3.1
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: Pretty url and pagination LISE

Post by Jo Morg »

Yup, it's a known issue, fixed in SVN and just waiting for me to have some time to test a bit further and cut a new release. I'll try to release it asap.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Grzelu
New Member
New Member
Posts: 2
Joined: Mon Apr 06, 2020 6:27 pm

Re: Pretty url and pagination LISE

Post by Grzelu »

Jo Morg wrote:Yup, it's a known issue, fixed in SVN and just waiting for me to have some time to test a bit further and cut a new release. I'll try to release it asap.
How to fix it for now, so i don't have to w8 till you fix it?
User avatar
Cyc
Forum Members
Forum Members
Posts: 91
Joined: Wed Nov 18, 2015 11:54 pm

Re: Pretty url and pagination LISE

Post by Cyc »

After update to 1.4.2 problem still exist.

http://szablon.compsoul.pl/airflo/produkty.html
Post Reply

Return to “Modules/Add-Ons”