LISE categories and pagination

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm
Location: Nimbin, Australia

LISE categories and pagination

Post 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
User avatar
Cyc
Forum Members
Forum Members
Posts: 91
Joined: Wed Nov 18, 2015 11:54 pm
Location: Poland

Re: LISE categories and pagination

Post by Cyc »

Try, for test it, remove pretty url and mod_rewrite.
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm
Location: Nimbin, Australia

Re: LISE categories and pagination

Post 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
Post Reply

Return to “Modules/Add-Ons”