• Resolved jos.huisken

    (@joshuisken)


    Recently found this plugin and I enjoy it! I have a feature request though:

    I would like to apply sorting on the whole (1300 long) table instead of only on the current page. Could that become an option which can be selected?

    And maybe another suggestion: select an ‘initial’ sort, different than the order in the .csv file. Since I would like to use the same .csv file for different pages with another subset of columns (and therefore different initial order). Obviously, using multiple .csv files is a viable solution as well. At some stage one has to decide for sql. ??

    On our page there’s also a layout issue with the search field, it spans the page width. Also there is a big vertical ‘search’ button. I do not know how to solve that but I guess that’s something not related with the plugin.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author wibergsweb

    (@wibergsweb)

    Hi

    First all. Forgive for the delay.. I usually do answer faster…

    The initial sort you’re talking about – you can achieve with: sort_cols_order and sort_cols and this is done on the whole table.

    e.g. sort_cols=”1,3″ – sorts first on column 1 and then column 3 ascending

    If you add sort_cols_order=”desc,asc” you order column 1 descending and column3 ascending”

    Is this enough for your needs?

    Can you have a look at the pagination.
    That look not pretty good.

    Plugin Author wibergsweb

    (@wibergsweb)

    @conny – the plugin provides functionality to read and display data from csv-file as a html-table. Design of elements on the page are in general terms up to the user of the website. The reason why – is that there are so many tastes, themes and designchoices to make on a website. I could supply css in the plugin, but that would probably mess up sites already using the plugin. The main focus of the plugin is functionality.

    If you have an y specific issues about layout, I will be glad to help! But then an attached image of what you want would be prefered.

    Plugin Author wibergsweb

    (@wibergsweb)

    @joshuisken – I’m looking into what you’re asking for based on searching the whole table while being on a rowset from the flle. This might take a while… ….but it’s abolutely a cool challenge!

    Plugin Author wibergsweb

    (@wibergsweb)

    @joshuisken – About the width.. The csvhtmltable just adjusts 100% to it’s parent. It’s parent is very wide and that is the issue. Change entry-content (.entry-content in css) to width:500px;

    e.g.

    .entry-content {width: 500px;}

    Plugin Author wibergsweb

    (@wibergsweb)

    @joshuisken – From v.2.1 of the plugin – sorting is now applied on the whole table.

    Thread Starter jos.huisken

    (@joshuisken)

    Thanks! I’ll update immediately!

    Plugin Author wibergsweb

    (@wibergsweb)

    (@joshuiske – nice! Please tell me if your satisified with the update (Update to 2.11 because I did a huge mistake missing important new files in 2.1)

    Thread Starter jos.huisken

    (@joshuisken)

    Works fine and fast. Very convenient to create the page and copy the csv, with urls in them. I’m just not familiar with .css at all, so the search text-input window is still too wide. See also skating result, now with 2.11

    I guess it is something in theme Twenty Sixteen which I’m using?

    Plugin Author wibergsweb

    (@wibergsweb)

    I did a quickfix on the width of the input which would be best solution for everyone. You’re right. For some reason your theme sets input to 100%. I set the input-box within the csvtohtml-container to width;auto which basically means. Just use width as browser defaults it to. This is done in version 2.19.

    Thread Starter jos.huisken

    (@joshuisken)

    Your fix works perfectly. Thank you!

    Plugin Author wibergsweb

    (@wibergsweb)

    Hi there! It works but not perfectly. The search button is “missing”.. but actually it is in a weird position. I’ve updated the plugin so search-button would be location besides reset – button. (Version 2.20).

    Thread Starter jos.huisken

    (@joshuisken)

    Problem re-appeared in 2.20. In 2.19 the text-input window was smaller (indeed without a visible search button), now it is too wide again with the search button long vertical right along table.

    Thread Starter jos.huisken

    (@joshuisken)

    Maybe just reverse search button and text-input window. The search button is then above the reset button.

    Plugin Author wibergsweb

    (@wibergsweb)

    Sorry about that! Update to latest version 2.21 and it should work! (In my code I refered to a css that did not exist). I was not paying enough attention when updating.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Sorting and pagination.’ is closed to new replies.