← Back to team overview

phpns-team team mailing list archive

[Question #80356]: Pagination on php pages with variables ?id=x

 

New question #80356 on phpns:
https://answers.launchpad.net/phpns/+question/80356

Hi,

First of all, congratulations and thank you! Alec and the team, you did a very good work!

My question:

1. I am using the include('shownews.php'); in some php pages of my website that have a parameter. 

For example:

http://www.mybzcity.com/main_street.php?id=2

2. Here, i have about 30 articles, and i set pagination = 5. 

3. PHPns will generate links like this:

http://www.mybzcity.com/main_street.php?a:page=3

instead of: 

http://www.mybzcity.com/main_street.php?id=2&a:page=3

and if i click on page 3, phpns will show me articles in main_street.php

4. During the past week, i have started to mod_rewrite my website, and my new link shows like this:

http://www.mybzcity.com/main_street/shop-jems-diamants--3

Inside this page i still have +30 articles, and pagination goes like this:

http://www.mybzcity.com/main_street/shop-jems-diamants--3?a:page=7

5. When you click on the page 7 (for example), phpns will take me to the first page (of articles), in the current location.


I am trying to see if i can "trick" something from templates, but i don't know.. 

Can you please offer me some suggestions? Or maybe, what I am trying to achieve here is not the proper way of doing things.

Thank you a lot,
Mihai





-- 
You received this question notification because you are a member of
Phpns-team, which is an answer contact for phpns.