Page 1 of 1

Pagination BUG with Newspaper template

Posted: Mon Mar 07, 2005 6:07 pm
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.

:?: :(

Re: Pagination BUG with Newspaper template

Posted: Mon Mar 07, 2005 6:10 pm
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:

Re: Pagination BUG with Newspaper template

Posted: Tue Mar 08, 2005 12:52 pm
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