• Resolved Will

    (@wramos)


    Greetings!
    First of all thank you for making such an awesome plugin!!

    I’m hoping that you can help me with a couple things:

    1) Using the sortfirst=”custom-desc” is not working for me. It’s always still sorting by the filename first no matter what. The following is the code I’m using:
    [fileaway type="table" sortfirst="custom-desc" style="silver-bullet" directories="off" color="blue" paginate="false" pagesize="500" base="1" manager="on" only=".doc,.docx,.xls,.pdf" exclude=".ico" bulkdownload="on" customdata="DATE*,TO,TOPIC,TYPE OF DOCUMENT" mod="no" size="no" drawerlabel="DOCUMENTS" ]

    Here’s the url to the table if you want to take a look:
    https://policy.oceanleadership.org/advocacy-activities/documents/

    And secondly, is there a way to make the search clearer so that people know that it’s for the documents only. For instance, it would be great if it could be something like SEARCH DOCUMENTS: [SEARCH INPUT FIELD HERE] at the top instead of just the small magnifying glass. I’ve been trying to figure out how to do this with CSS and without modifying the core plugin files themselves but without success. Any help would be greatly appreciated.

    Thank you again for all your hard work!! =)

    ~Will

    https://www.ads-software.com/plugins/file-away/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author thomstark

    (@thomstark)

    It’s possible I broke the custom-sort when I made a small change to that section. I will look into this and get back to you. I will think about your second request. I made it as small as possible to accommodate any headings added to the table. You can always add a right-aligned note in your html directly above the search icon. But I’ll think about it. I’m getting ready to release 3.1 with YouTube and Vimeo support for the Flightbox, and I’ll be sure the custom-sort is fixed in that release.

    Thread Starter Will

    (@wramos)

    Thank you so much for the quick reply!! Looking forward to the update! =)

    ~Will

    Plugin Author thomstark

    (@thomstark)

    I found your problem! It’s not a bug. Tables always sort first by filename IF directories are enabled. You THINK you have directories disabled, BUCHYADON’T.

    The shortcode attribute is binary. If it’s in the shortcode, it’s on. Remove directories="off" from your shortcode and your sort will work.

    Plugin Author thomstark

    (@thomstark)

    Same with paginate="false". Remove that from your shortcode and pagination will be off. (You can then remove pagesize=500 from your shortcode too.) ??

    Thread Starter Will

    (@wramos)

    Thanks once again for the quick response and help- but I did what you suggested above and unfortunately still no joy. Here’s what my code looks like now, just to make sure I didn’t miss anything:
    [fileaway type="table" sortfirst="custom-desc" style="silver-bullet" color="blue" base="1" manager="on" only=".doc,.docx,.xls,.pdf" exclude=".ico" bulkdownload="on" customdata="DATE*,TO,TOPIC,TYPE OF DOCUMENT" mod="no" size="no" drawerlabel="DOCUMENTS" ]

    Plugin Author thomstark

    (@thomstark)

    manager=”on” means directories=”on+more_awesomeness”

    Plugin Author thomstark

    (@thomstark)

    Manager Mode is Directory Tree Mode+++.

    In any directory nav table, the sortfirst is always filename, because the directories have filename data values of “# # # # # Dirname” in order to put them at the top of the table.

    Plugin Author thomstark

    (@thomstark)

    Sorry I didn’t notice manager in your shortcode. I got as far as directories and knew that was the issue.

    Plugin Author thomstark

    (@thomstark)

    I will see if I can fix it so you can sort and still have directories at the top.

    Plugin Author thomstark

    (@thomstark)

    Although that gets real complicated if you’re sorting descending. :/

    Plugin Author thomstark

    (@thomstark)

    OK. I’ve added the hidden sorting data-values for Directories to all the table cells, and updated the javascript that renames the data-values when a directory is renamed (or created). I’ve removed the restriction on initial sorting with Directory Tree Nav/Manager Mode. Be aware that if you’re sorting by Custom Data Ascending and a custom Data field is empty, it will appear above the “Create New Directory” and “Directory” rows, while non-empty custom-data fields will appear on top of them. Vice versa if sorting descending. So the reason I had the restriction was to avoid that sort of thing, at least on initial pageload. Nevertheless, your request will be granted in the next version.

    Plugin Author thomstark

    (@thomstark)

    Oh and I’ve added a searchlabel attribute for the next release as well.

    Thread Starter Will

    (@wramos)

    That is awesome!!! Thank you so much for quick responses and help! Looking forward to the next release! =)

    ~Will

    Plugin Author thomstark

    (@thomstark)

    3.1 is now up.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Custom colum sort not working’ is closed to new replies.