Page 1 of 1

LISE categories and pagination

Posted: Wed Apr 28, 2021 2:32 am
by rotezecke
Trying to build my old blog in LISE. I call my categories

Code: Select all

{LISEcgblog action="category" orderby="category_id"}
which prints an <ul> in a side div.

Code: Select all

<ul class="nopane">
<li>{cms_selflink class="{if empty({$category->category_id})}current{/if}" page="{$page_alias}"  title="All Categories" text="<span>All Categories</span>"}</li> 
{foreach from=$categories item=category}
  <li><a href="{$category->url}" 
{if ! empty($category->current)}class="current" {/if}
title="{$category->name}"><span>{$category->name}</span></a></li>
{/foreach}
</ul>
first tab would load all categories (default behaviour), the other tabs would filter by category (using default summary template). This works fine.

But, when I call the category menu with a pagelimit

Code: Select all

{LISEcgblog action="category" orderby="category_id" pagelimit=10}
the category links no longer load the default summary template, they are loading the default detail template

the URL for the categories without pagination:
https://www.rpc.com.au/solar-news/appliances/1/716.html

with pagination
https://www.rpc.com.au/solar-news/appli ... 0/716.html

What am I doing wrong? Thanks

Re: LISE categories and pagination

Posted: Wed May 05, 2021 9:38 pm
by Cyc
Try, for test it, remove pretty url and mod_rewrite.

Re: LISE categories and pagination

Posted: Wed May 05, 2021 11:31 pm
by rotezecke
Thanks for your response. I'm afraid, pretty URLs are a requirement.
i have since settled for what I have, pagination is on without category filter, or pagination is off with category filter. Which is exactly what I had with CGBlog, I just hoped I could have taken LISE further, but it was not a requirement.
The links are now broken in the original post. Don't know how to edit, but here's the fixed one.
https://www.rpc.com.au/solar-news/appliances/1/183.html