WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] Highlight todays date (10 posts)

  1. fenomeno0chris
    Member
    Posted 1 year ago #

    Hello,
    first I want to thank you very much for this great plugin!

    I have a featured request, for your upcoming update.
    Could you highlight the line with the current date?
    That would be awesome for my upcoming project, where users should immediately recognize which event starts today.

    In my case I have a long list with a lot of event entries. So expired events should just be visible if you scroll back to top. The current date should be highlighted as the "first" entry, if you not scroll at all.

    I hope you could understand my request, because my english skills are not so good.

    PS: I have a problem with the date sorting. I also installed "TablePress Extension: DataTables Sorting plugins", but still my dates sort wrong.

    cheers Chris

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

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Chris,

    thanks for your question.

    Unfortunately, I don't really think that this is possible that easily, and therefore, this will most likely not make it into the core of the plugin. Also, it's probably not that useful to many people, so that the best approach here might be to develop this as a TablePress Extension. With that, you could use some plugin filter hooks, loop through the content of the table, search for the date and then do the highlighting.
    This would be much more flexible than any solution in the plugin directly could ever be.

    About the date sorting: Can you please post a link to the page with the table, so that I can take a direct look at this? Thanks!

    Regards,
    Tobias

  3. fenomeno0chris
    Member
    Posted 1 year ago #

    http://www.game-releases.com

    Hope you can help me.

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for the link!
    From what I can see, you have not yet told the table to use the German date format for the fifth column. To do that, please add this to the "Custom Commands" ("Eigene Befehle") textfield on the "Edit" screen of the table:

    "aoColumnDefs": [ { "sType": "date-eu", "aTargets": [ 4 ] } ]

    The 4 indicates fifth column, as counting starts with 0.

    Regards,
    Tobias

  5. fenomeno0chris
    Member
    Posted 1 year ago #

    Thank you very much!
    The sorting works perfectly now.

    I have also installed Table Row Order, to order the table by date. But if I`m using
    [table id=1 row_order="sort" row_order_sort_column="E" /]
    it wont sort. I know that its a premium extension, but how much does it cost? And where do I have to pay it?

    _____________________________________________
    So are you working on the highlight extension? Without this highlighting I have to reconsider the whole project.

  6. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    good to hear that the sorting works now :-)

    The Table Row Order Extension is not that helpful here, unfortunately, as it does not understand date data types, but only strings and numbers :-(
    I assume that you probably want to change the initial table order. You could achieve that by extending the "Custom Command" from above to

    "aoColumnDefs": [ { "sType": "date-eu", "aTargets": [ 4 ] } ], "aaSorting": [[4,'asc']]

    And yes, the Table Row Order Extension is a premium extension, but you can still use if for free. Premium in this case means that it is encouraged to donate to TablePress, if you are happy with the Extension. It does not have a fixed price.

    About that Highlighting Extension: No, sorry, working on this is more than what I can offer as free support right now. If you want, we could try to work something out professionally here though. If that would be an option for you, please send me an email with a detailed explanation of what you would like to have (maybe with a small example), so that we can discuss this. You can find my email address in the main plugin file "tablepress.php".

    Regards,
    Tobias

  7. fenomeno0chris
    Member
    Posted 1 year ago #

    Hello, check your inbox!

    I hope we can manage this together.

  8. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    yes, thanks, I have received your email, and I will probably have time to reply this evening.

    Regards,
    Tobias

  9. snoopy866
    Member
    Posted 4 weeks ago #

    Hello,

    did you find solution to this problem?

    Tnx.

  10. TobiasBg
    Member
    Plugin Author

    Posted 4 weeks ago #

    Hi snoppy866,

    no, sorry :-( And I still don't see a chance for this in the near future, unfortunately.

    Best wishes,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic