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
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.
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" ]
manager=”on” means directories=”on+more_awesomeness”
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.
Sorry I didn’t notice manager in your shortcode. I got as far as directories and knew that was the issue.
I will see if I can fix it so you can sort and still have directories at the top.
Although that gets real complicated if you’re sorting descending. :/
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.
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