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


