 |
 |
 |
 |
 |
| Author |
Message |
VladDrakul
Joined: 10 Apr 2006 Posts: 48
|
|
how to include navigation links like: previous, next |
|
I'm using the following code to get 10 news:
<?php
$number = 10;
$category = 'reviews,a';
$template = 'Headlines';
include $cutepath.'/show_news.php';?>
However I would like to know if its possible to have navigation links, like: <previous page> 1 . 2 . 3 . <next page>
If I have a category with 50 news but I want to split them in 5 pages how can this be done?
Sorry if my questions seems basic, but I'm giving the first steps
|
|
| Mon Apr 10, 2006 9:59 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2857 Location: Germany |
|
|
|
Well, if you have 50 news and you put $number = 10; to your include code then it should show 10 news per page and below these 10 news there should be the pagination links: <previous> 1 2 3 4 5<next>
So basically, the include code you provided should show 10 news. If you have more than 10 news then it should show the pagination below the news.
|
|
| Tue Apr 11, 2006 7:02 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|