Categories > TinyButStrong general >

Navigationbar: only 3 page numbers

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Marcel Bodewitz
Date: 2005-09-01
Time: 13:39

Navigationbar: only 3 page numbers

Hi,

Wonderful thing, that Tinybutstrong!
But I've got the following problem:

I've got a table, with 500 records.
I'm using the by-page-mode, and i'm using a navigation bar.
But the navigation bar shows only 3 page numbers; the number of the previous, the number of the current and the number of the next page. (oh, and some other pages; first, previous, next, last).
I would like to show more page numbers, for example 10 page nrs.
How can I do this?

right now i've got the following code for the nav bar:

<table class="table_in_body">
  <tr align="left">
    <td class="nav_cell"><a href="[var..script_name]?PageNum=[nv.first;endpoint;magnet=a;mtype=m+m]&sort=[var.sort]">|&lt;</a></td>
    <td class="nav_cell"><a href="[var..script_name]?PageNum=[nv.prev;endpoint;magnet=a;mtype=m+m]&sort=[var.sort]">&lt;</a></td>
    <td class="nav_cell"><a href="[var..script_name]?PageNum=[nv.page;block=td;navsize=3;navpos=centred]&sort=[var.sort]">[nv.page]</a></td>
    <td class="current_nav_cell">[nv.page;block=td;currpage]</td>
    <td class="nav_cell"><a href="[var..script_name]?PageNum=[nv.next;endpoint;magnet=a;mtype=m+m]&sort=[var.sort]">&gt;</a></td>
    <td class="nav_cell"><a href="[var..script_name]?PageNum=[nv.last;endpoint;magnet=a;mtype=m+m]&sort=[var.sort]">&gt;|</a></td>
  </tr>
</table>

This shows for example:
|<  <  3 4 5 >  >|

I would like this to be:
|<  <  3 4 5 6 7 8 9 10 11 12 >  >|
By: Skrol29
Date: 2005-09-01
Time: 14:12

Re: Navigationbar: only 3 page numbers

Hello,

You've got
  navsize=3
in your snippet