Sortable tables?
The more people who ask this question, the more it gets noticed.
-
Inappropriate?Oh wow. That's seriously the coolest thing I've seen all day, and I read Fark.com. That is so going in the feature requests! Even if I never figure out how to use it in my own wiki, that is really cool.
I’m blown away
-
Inappropriate?Sorting is the main reason I keep a lot of my information on Google Spreadsheets instead of inside PBwiki. This would be very cool.
-
Inappropriate?Indeed, cool!
After some digging around: wikipedia uses an adapted version of sortable table to make that work.
With some imagination, following instructions and few adaptations for PBwiki you can make it work too!
And another, very groovey tip: Google announced forms recently which can easily be <iframe> embedded in your wiki, to survey your visitors. A nice feature ... Add a poll to your wiki! -
Inappropriate?I've been playing with the link that vangispen posted to http://www.joostdevalk.nl/code/sortab...
I've pasted the css code into wiki.css, and copied the HTML source of the example table. Nothing happens. Probably something obvious I'm missing. Any ideas?
I’m unsure
-
Inappropriate?Answering my own question... I haven't hacked with PBwiki in a while, and I forgot that you have to change the reference [src="sortable.js"] to [src="/f/sortable.js"]. Voila, it works!
I’m excited
-
Inappropriate?I was working on a private wiki, but I've duplicated the results on a public wiki so people can see what it looks like: [http://cayamo.pbwiki.com/sort].
1 person says
this answers the question
-
Inappropriate?Eureka! It worked. Your directions and examples were so helpful that even I (someone with zero experience in this area) was able to implement them.
Thanks a million!
I’m ecstatic
-
Inappropriate?I've created my own implementations of this before, so my only warning is that if your table starts getting really large (like in the thousands of elements and beyond), it might get a bit laggy. It shouldn't be a problem in most cases though.
Have fun!
Vu
PBwiki Team
I’m happy when you're happy!
-
Inappropriate?Sadly, it appears that useful hacks like this won't work in PBwiki 2.0 for a long time, if ever. So implement at your own risk.
-
Inappropriate?this had better work in pbwiki 2.0.
ive implemented it on all my tables now and is a very very important feature of my wiki.
I’m worried
-
Inappropriate?I withdraw my frowny face above! Tonight, PBwiki has turned on "Custom HTML" in the Settings menu, so now JavaScript and CSS are both accessible! It's ugly and I need to fiddle with color settings, but the proof is at http://angel-lounge-public.pbwiki.com...
I’m thrilled!
-
Inappropriate?It's not working for me. I don't see the arrows (triangles) in the table headers. Did you turn something off?
-
Inappropriate?Hmm. Seems to be a bug. Works fine if you are logged in. Works fine as anonymous access if you log in then log out (not a useful scenario). DOESN'T work if you come in as anonymous and stay that way.
I've reported it to the 2.0 beta tracking. Fingers crossed. -
Inappropriate?This pretty much solved every problem i have at this point in my life.
Note: I also have to add id="sortabletable" and class="sortable" to all of my tables.
I’m stizzoked
Loading Profile...





EMPLOYEE
EMPLOYEE

