Support » Plugin: TablePress » Rearranging the search field, filters and pagination

  • Resolved araykov

    (@araykov)


    Hey Tobias,

    I am still fascinated by your plugin. A great and powerful tool.

    For my webpage I need to rearrange the order of the search/filtering fields. I want to have the search field coming on top, then followed by the filters from the respective widget underneath and then the pagination tool can stay where it is (right on top of the table).

    Could you please help me with this one?

    Thanks a bunch 🙂

    Cheers,
    Andrey

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

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

    (@tobiasbg)

    Hi Andrey,

    thanks for your question.

    I haven’t tested it, but please try changing the line

    $parameters['sDom'] = '"sDom": "Wlfrtip"';

    to

    $parameters['sDom'] = '"sDom": "fWlrtip"';

    in the file “tablepress-datatables-column-filter-widgets.php” of the ColumnFilterWidgets Extension.
    This should move the search to the top. The pattern follows the sDom parameter for DataTables, as explained at http://datatables.net/usage/options#sDom

    Additionally, you might then want some “Custom CSS” like

    #tablepress-123_filter {
      float: left;
    }

    to move the search to the left. (123 is the table ID.)

    Regards,
    Tobias

    Awesome!

    Thanks Tobias! It worked as you suggested 🙂

    Cheers,
    Andrey

    Plugin Author TobiasBg

    (@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 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Rearranging the search field, filters and pagination’ is closed to new replies.