WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] 2 suggestions for TablePress (8 posts)

  1. kalamitt
    Member
    Posted 8 months ago #

    Hello,

    first I have to say with joy -> this is one of the best plugin (to me) for WP. I like it.

    But, as a steady user I have 2 suggestions:

    1. Link, image inserting
    I have some tables with many rows where inserting links or images through insert buttons is really stunt. (write html code even more). Maybe same buttons at top of table template could help, or inserting button panel visible at mouse-over the table cells.. or something similar..

    2. Column sorting
    Cool feature, but useless with numbers or date, time sorting.

    Thanks so much again for this cool WP plugin.
    All the best and have a nice days.

    http://wordpress.org/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 8 months ago #

    Hi,

    thanks for your post and the suggestions! Great to hear that you like the plugin!
    If you want, you can rate TablePress here in the plugin directory. That would be cool.

    1. Yes, this is also bothering me. Unfortunately, I haven't yet found a good solution to this, that is both easy to implement and easy to use for a user. But I'll keep investigating :-)

    2. Can you clarify which sorting you mean here? The one on the "Edit" screen or that on the frontend, when a visitor sees the table? The one on the "Edit" screen is indeed not that flexible as it can not distinguish between different data types.

    Regards,
    Tobias

  3. kalamitt
    Member
    Posted 8 months ago #

    Hello again,

    yeah, i did it with short review. ;)

    1. Yeah, ok.
    2. Frontend is more important to me at this time.
    I mean this - example:
    TP sorting I need this
    11-8-2011 11-8-2011
    115-8-2011 12-8-2011
    12-8-2011 115-8-2011
    121-8-2011 121-8-2011

    Problem here is, that I cannot use 011-8-2011 cos its document label and its important to write it correct.

    Date -> this one I fixed, now its correct -> i had incorrect date format

    thank you
    BR

  4. kalamitt
    Member
    Posted 8 months ago #

    Same problem are prices.. for example sorting of:
    1,6
    12,5
    6,3
    I cannot write 01,6 € or 06,3 $ ;)

  5. DA2206
    Member
    Posted 8 months ago #

    Hi,

    Also having the same problem here with the sorting on the front end but with simple numbers and currencies.

    For example I have records with values of '87 kg', '700 kg' and '104 kg'.

    When I sort it becomes:
    '87 kg'
    '700 kg'
    '104 kg'

    It would be great if the first part before any punctuation or space was checked to see if it was a number and if so sort as if it was a number column.

    Many thanks,

    Dan

  6. TobiasBg
    Member
    Plugin Author

    Posted 8 months ago #

    Hi,

    thanks for all of your feedback regarding the sorting and your reviews! I really appreciate it!

    @kalamitt: Well, the problem here is that your document label is a string and not a number. And therefore, the DataTables JS library that TablePress uses for the sorting does not know how to handle that special data format. You would therefore need a custom sorting algorithm for this type of data, as e.g. shown in some examples at http://datatables.net/plug-ins/sorting
    The prices are a similar issue. By default, DataTables recognizes these as strings again, and as strings are simply sorted differently than numbers, you get the wrong results.
    This is however fixable with an already existing TablePress Extension: http://tablepress.org/extensions/datatables-sorting-plugins/

    @DA2206: And your's is also a similar case: Due to the kg (a unit to a number), those are also sorted as strings. You can however also use the Extension from http://tablepress.org/extensions/datatables-sorting-plugins/ but with formatted-num in the code instead of numeric-comma.

    Regards,
    Tobias

  7. kalamitt
    Member
    Posted 8 months ago #

    Great, thank you Tobias.

  8. TobiasBg
    Member
    Plugin Author

    Posted 8 months ago #

    Hi,

    sure, no problem! :-) Great to hear that this helps!

    Regards,
    Tobias

Reply

You must log in to post.

About this Plugin

About this Topic