Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By cesartovic on
Hello I have a problem,
I have a table with a lot of rows and I want to show the rows in groups of 20. For example below tha table appears different numbers 1,2,3,4 and if the user clicks it he see the next group of rows, For example in page 2 rows from 20 to 20, in page 3 rows from 40 to 60, etc..
How I can do it?
Thanks
Comments
AN EXAMPLE
Hi,
an example of what I want is:
http://drupal.org/forum/22
Thanks
How is the table built?
Is it just static HTML? or is it information that's pulled from a database?
if the former, you'll have to cut the table into pieces and put each piece on a separate node, with links to each previous and next node. (or you can cheat and use the outline/book module to have that taken care of for you).
If the latter, you can use some custom PHP snippets to generate a paged list of X amount of rows. This is by far the best method, especially since the tables will be updated dynamically as content is added/deleted.
-------------------------------
GU d- -p+ c++++ l++ e* m* s+ n+ h+ f? g+ w+++ t- r y?
Madcap - design - development - consultancy
http://www.madcap.nl - Running on Drupal, of course.
iT'S INFORMATION PULLED FROM A DATABASE
Hello, it's information pulled from a database. Do you know the functions of PHP Or Drupal to do it?
Thanks
Table Manager Module
How about the Table Manager Module?
http://drupal.org/node/37339
An example:
Somehting similar to what I have used on our site is possible then.
Insert the proper database values for the tables and columns in here of course, and you may want to play around with the ordering and where clauses, but I'll leave that as an excercise for the reader ;)
-------------------------------
GU d- -p+ c++++ l++ e* m* s+ n+ h+ f? g+ w+++ t- r y?
Madcap - design - development - consultancy
http://www.madcap.nl - Running on Drupal, of course.