Pagination BUG with Newspaper template

Found a bug? Tell us!!
Post Reply
PAGI

Pagination BUG with Newspaper template

Post by PAGI »

I made extensive searching to solve the bug in Newspaper with pagination, however without any result.

When I choose the PHP template<Newspaper> layout.php and select any category from the menu - ALL of the listing are displayed on the first page WITHOUT PAGINATION - but only with NEWSPAPER template.
------>The default template works fine but it is SMARTY not php, layout.php. :idea:

EXAMPLE:
http://www.shopzero.com/uk/opinions/ind ... ite-Online

or if someone can explain to me how to include my php template in SMARTY might be helpful - my tests were unsuccessful.

:?: :(
PAGI

Re: Pagination BUG with Newspaper template

Post by PAGI »

PAGI wrote:I made extensive searching to solve the bug in Newspaper with pagination, however without any result.

When I choose the PHP template<Newspaper> layout.php and select any category from the menu - ALL of the listing are displayed on the first page WITHOUT PAGINATION - but only with NEWSPAPER template.
------>The default template works fine but it is SMARTY not php, layout.php. :idea:

EXAMPLE:
http://www.shopzero.com/uk/opinions/ind ... ite-Online

or if someone can explain to me how to include my php template in SMARTY might be helpful - my tests were unsuccessful.

:?: :(

BUT WHEN I AGAIN CHOOSE ALL CATEGORIES THE PAGINATION WORKS FINE FOR ALL CATEGORIES - only when you choose single category the problem comes out. :oops:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Pagination BUG with Newspaper template

Post by garvinhicking »

Hi!

I just fixed the error in layout.php in CVS.

The error was in line 66, which needs to be replaced to:

Code: Select all

serendipity_printEntries(serendipity_fetchEntries($serendipity['range'], true, $serendipity['fetchLimit']));
instead of

Code: Select all

serendipity_printEntries(serendipity_fetchEntries($serendipity['GET']['range']));
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply