WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP-Table Reloaded] Request: limit rows to less than 10 & enable table scrolling (4 posts)

  1. RickA99
    Member
    Posted 4 years ago #

    WP version 2.9

    I have two feature requests:

    1) I would like to be able to reduce the number of visible rows from the default of ten rows because I want to limit the total page height on the page where the table is located.

    2) An option to scroll the table rather than use pagination would be useful in many applications. I find that I prefer to scroll whenever possible rather than click to a new page.

    In my particular application, the best of all worlds would be to have a smaller number of rows visible on the page and be able to scroll down to see the rest, if desired. These may seem contradictory but I have other content that I want to put below the table and I don't want it to be so far down the page.

    Thanks for your work. This is a wonderful plugin. It is so easy to use and has so many useful applications.

    http://wordpress.org/extend/plugins/wp-table-reloaded/

  2. TobiasBg
    Member
    Posted 4 years ago #

    Hi,

    thanks for your support questions!

    1.) You can already reduce the number of rows shown with an Additional Command for DataTables. Please have a look at the documentation http://www.datatables.net/usage/options
    The option you need is "iDisplayLength". If you set that, you probably also want to uncheck the "Length Change" checkbox in the DataTables options on the "Edit Table" screen.

    2.) Scrolling instead of pagination could be possible with CSS. Unfortunately I have no clues for you on this one. It might be possible to add a div around the table that has certain CSS commands to make the table within scrollable.
    I'll try to look into this after Christmas, maybe I can find a possibility, but I can't promise anything.

    In general those stuff is not easy to handle for a plugin, because the output is always affected by the theme that a user uses, and that might override certain stuff.

    Best wishes and Merry Christmas!
    Tobias

  3. waitersrace
    Member
    Posted 4 years ago #

    Hi,

    I would like to add pagination to my table but I can't.

    I did as follow:
    1. in plugin options> frontend options> JavaScript library
    I checked "Yes, enable the use of a JavaScript library. WP-Table Reloaded includes three JavaScript libraries that can add useful features, like sorting, pagination, and filtering, to a table."

    2.in edit table> data table javascript features> custom commands
    I wrote:
    "iDisplayLength": 25

    It doesn't work. what is my mistake please? I am complete novice so if you could tell me what to do exactly it would be very nice.

    thanks a lot,

    ruben

  4. TobiasBg
    Member
    Posted 4 years ago #

    Hi,

    we figured this out to be a theme problem.
    Changing the theme helped.

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Topic