Page 1 of 1

Pretty url and pagination LISE

Posted: Sat Apr 18, 2020 10:24 am
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

Re: Pretty url and pagination LISE

Posted: Sat Apr 18, 2020 11:18 am
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.

Re: Pretty url and pagination LISE

Posted: Sat Apr 18, 2020 11:33 am
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?

Re: Pretty url and pagination LISE

Posted: Mon Jan 04, 2021 12:57 pm
by Cyc
After update to 1.4.2 problem still exist.

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