Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? I couldn’t find it on your site. Thanks!

    Regards,
    Tobias

    Thread Starter malpica

    (@malpica)

    Hi,

    In the page https://www.mendivilyasociados.com/?p=958 you must complet the fields and press “calcular precio”. You’ll see a new page with the plugin table press.

    I have another problem. When load the page with results within tablepress plugin don’t show the fieds with results but if I have logged in my wordpress page the results are shown correctly.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    ah, this might be a caching issue.
    Please extend the used Shortcode to

    [table id=4 cache_table_output=false /]

    Regards,
    Tobias

    Thread Starter malpica

    (@malpica)

    The shortcode it’s: [table id=4 cache_table_output=false row_order=”sort” row_order_sort_column=”B” row_order_sort_direction=”ASC” /]

    Don’t work

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    the problem basically is that the cell content is a currency value together with HTML code, like

    <p><b><center>279,40€</center></b></p>

    I suggest to make this only the currency value without the HTML (and instead apply CSS styling). After that, you can use the regular JS sorting (it can also be given a default order, by adding e.g.

    "order": [[ 1, 'asc' ]]

    as a “Custom Command” on the table’s “Edit” screen, where the 1 indicates the second column, as counting starts with 0 in this code), as the Table Row Order Extension can not sort currencies.

    Regards,
    Tobias

    Thread Starter malpica

    (@malpica)

    I have seen that the plugin works good if the shortcode is [table id=4 cache_table_output=false], but if I insert code to sort results, plugin don’t work

    How can I sort results?

    Best regards

    Thread Starter malpica

    (@malpica)

    Ok problem solved.

    One question: How can I reduce space between column’s header and the sorting arrows?

    Best regards.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    good to hear that the sorting is working now!

    You can’t really move the arrows, as they’ll always be on the right hand side of the cell.

    The only idea that I see would be to reduce the table’s width, e.g. by adding this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .dataTables_wrapper .tablepress-id-4 {
    	width: auto !important;
    }

    Regards,
    Tobias

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘sort results’ is closed to new replies.