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.

    To implement this, the best way would be to either adjust the code in the Extension’s PHP file, so that it prints the extra parameters, or to turn off the DataTables Integration for this table in TablePress and load everything manually.
    Unfortunately, there’s no easy way (like simply adding a Shortcode parameter) yet. Sorry.

    Regards,
    Tobias

    Thread Starter zubeldialuis

    (@zubeldialuis)

    thanks for quick reply.

    i find the way to do it editing

    $columnfilter_parameters in tablepress-datatables-columnfilter.php line 52.

    It works but it is replacing my first row with the filter, not the second row, son my header disspear.

    Thaks you.

    Thread Starter zubeldialuis

    (@zubeldialuis)

    if (properties.sPlaceHolder == "head:after") {
                    var tr = $("tr:first", oTable.fnSettings().nTHead).detach();
                    //tr.appendTo($(oTable.fnSettings().nTHead));
                    if (oTable.fnSettings().bSortCellsTop) {
                        tr.prependTo($(oTable.fnSettings().nTHead));
                        //tr.appendTo($("thead", oTable));
                        aoFilterCells = oTable.fnSettings().aoHeader[1];
                    }
                    else {
                        tr.appendTo($(oTable.fnSettings().nTHead));
                        //tr.prependTo($("thead", oTable));
                        aoFilterCells = oTable.fnSettings().aoHeader[0];
                    }
    
                    sFilterRow = "tr:last";
                    oHost = oTable.fnSettings().nTHead;

    this is the function tu append in heder after, but seems thats is not working find.

    any ideas?

    Thread Starter zubeldialuis

    (@zubeldialuis)

    seems that here there are more information about this issue

    https://code.google.com/p/jquery-datatables-column-filter/issues/detail?id=54

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    good to hear that you found the way how to edit the Extension.
    Unfortunately, I can’t help with that new issue, as I’m not the developer of that JavaScript code and just don’t know the internals of it well enough. Sorry.

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘header colum filter extension position’ is closed to new replies.