• Resolved lugumedia

    (@lugumedia)


    How is it possible to make only individual columns sortable? For example column 1 can be sorted, column 2 can not be sorted…

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For this, you can turn off sorting on desired columns, using a “Custom Command”.
    Please try adding this into the “Custom Commands” text field on the table’s “Edit” screen:

    "columnDefs": [ { "orderable": false, "targets": [ 1, 3 ] } ]
    

    This would turn off sorting for the second and fourth column (counting columns starts with 0 in this code).

    Regards,
    Tobias

    Thread Starter lugumedia

    (@lugumedia)

    Hallo Tobias,
    vielen Dank für den Hinweis, genau das was ich benötigt hatte. Eine Sache aber noch: Links unterhalb der Tabellen gibt es die Bezeichnung “1 bis x von x Einträgen”. Ich würde gerne den Begriff “Einträgen” in “Projekte” übersetzen, finde aber auch mit Loco Translate die entsprechende Stelle nicht. Wie bekomme ich das hin?
    Gruß Luis

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Luis,

    for translating this, you will need to use https://tablepress.org/extensions/change-datatables-strings/

    Regards,
    Tobias

    Thread Starter lugumedia

    (@lugumedia)

    Hi Tobias,
    many thanks, that helped!
    Regards
    Luis

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Only individual columns sortable?’ is closed to new replies.