Support » Plugin: TablePress » DataTables : Alphabet Search & Moving Elements

  • Resolved pixelyzed

    (@pixelyzed)


    Hi,

    I have two questions regarding the use od the DataTables featurers with TablePress. One is about the placement of elements. On a project I’m working on, the designer would want to have the “Show X entries” dropdown after the table and not before. Is there a way to do this?

    My other question is regarding the Alphabet Search filter/search feature which you pointed someone to here: https://wordpress.org/support/topic/search-filter-by-first-letter-of-a-product/

    That was a year and a half ago and while the plugin is still downloadable, its page doesn’t exist anymore. I installed it and it seems to work but it’s not supported by the “Change DataTables strings” plugin and I’d be worried it would stop working at some point.

    Regardless of my current project, to me this would generally be the most useful of the Datatables feature for user (clearest UX for finding things in a long paginated table and I was wondering of you really abandoned it or if it will be supported, etc.

    I’m using TablePress for dynamic listings from CPTs (in conjunction with Pods Pro’s new plugin for TablePress for such) and this feature would be really useful for any future projects that would require table listings like this.

    I’ll gladly make another donation if that helps get that feature back on track in TablePress 🙂

    Thank you!

    Stéphane Bergeron

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For moving the “Show X entries”, you can use a “Custom Command” on the table’s “Edit” screen:

    "dom": "frtilp"
    

    See https://datatables.net/reference/option/dom for the documentation on this.

    For the Alphabet Search: No worries, it’s not abandoned or anything. It actually never had its own page on the TablePress website 🙂
    You can continue to use it and will work fine for the foreseeable future.
    Regarding the translation of that “Search” string: That’s indeed not directly possible with that other Extension, but will have to be done manually in the JS code. I recommend to simply search for 'Search: ' in the two JS files and replace that with whatever text you want.

    Regards,
    Tobias

    Thread Starter pixelyzed

    (@pixelyzed)

    Hello Tobias,

    Thank you very much for your quick reply. Good to know that the Alphabet search extension is still active, that is great news to me! I’m testing the custom commands and it works great for moving the length dropdown but I lost the alphabet search buttons. Is there a letter for that?

    Thanks again!

    Thread Starter pixelyzed

    (@pixelyzed)

    Oh and last thing :), is there a similar way to change each column’s header text (as it’s a dynamic table I can’t edit this data in TablePress directly).

    Thanks!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ah, when moving the dropdown, you will also need to keep an extra A in the “Custom Command”, as an indicator for the Alphabet Search:

    "dom": "Afrtilp"
    

    I’m not sure what you mean with changing the column header text though. Do you maybe have an example?

    Regards,
    Tobias

    Thread Starter pixelyzed

    (@pixelyzed)

    Hello,

    Got it for the order, works perfectly!

    For the header text I mean the actual column name in thead. My first column is the post title of the CPT and it says “Title” as the column name/heading. I need it to say “Companies”. Again this is using the Pods integration and maybe I should ask them but was wondering if DataTables has a way to do it.

    Thank you so much aghain!

    That side would be the Pods Pro integration since it takes over the whole data set entirely. I’ll get that figured out with you tomorrow.

    Thread Starter pixelyzed

    (@pixelyzed)

    Hello Scott,

    Thank you so much! FWIW, I am truly impressed by the level of support you and Tobias give. That makes your tools so much better and powerful!

    Thanks again!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for the clarification! Yes, it will probably indeed be the best to change this at the source of the data, i.e. in Pods.

    Right now, I can only think of a CSS hack using th:before to add a modified text, but that would not really be that nice.

    Regards,
    Tobias

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.