Tablesorter extension

Discuss PivotX 2.0.x extensions here, and view extensions that are available for download.

Tablesorter extension

Postby hansfn » Sat May 01, 2010 5:53 pm

This is the discussion topic for the (jQuery) Tablesorter extension.

Visit http://extensions.pivotx.net/entry/36/tablesorter for download and more info.
hansfn
Developer
 
Posts: 3280
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: jQuery Tablesorter

Postby verbaljam » Sun May 02, 2010 9:25 pm

May I politely suggest that our excellent developers always add some information for the humble user? ;-)
What does this extension do? Does it sort html-tables or database tables? And why should we want to use it?
If you read Dutch, you read Verbal Jam.
Lack of documentation makes even the best program useless...
verbaljam
 
Posts: 143
Joined: Thu Apr 22, 2010 8:32 am
Location: Amsterdam

Re: jQuery Tablesorter

Postby hansfn » Sun May 02, 2010 9:34 pm

Well, I should have turned "jQuery Tablesorte" into a link in the post above - I did in the extension documentation, but is it too much to expect our excellent users to be able to use Google ;-)

PS! For those that won't use the link above, the short story is: "tablesorter is a jQuery plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes."
hansfn
Developer
 
Posts: 3280
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: jQuery Tablesorter

Postby verbaljam » Sun May 02, 2010 10:01 pm

Of course this user isn't too lazy to use Google if necessary, but when it already looks complicated, I expect google only to return more complicated stuff.
As you know I'm not a programmer, so I have an interest in making PivotX as accessable to the common user as it can be. Otherwise it remains a cms for script-savvy people.
So I hope you don't mind me asking for some clarification from time to time. ;-)
If you read Dutch, you read Verbal Jam.
Lack of documentation makes even the best program useless...
verbaljam
 
Posts: 143
Joined: Thu Apr 22, 2010 8:32 am
Location: Amsterdam

Re: Tablesorter extension

Postby winters » Tue Nov 15, 2016 4:48 am

does someone knows what I am doing wrong here

<table class="table table-hover" [[ jquery_tablesorter , 'sortList: [ [4,0] ]' ]]>

or

<table class="table table-hover" [[ jquery_tablesorter , sortList='[[4,0]]' ]]>

table sorter is working but, I would like to presort the list on column 4

but this is not working and I tried a lot!

can some have a look at the above

thanks!
winters
winters
 
Posts: 82
Joined: Thu Jan 13, 2011 9:09 pm

Re: Tablesorter extension

Postby hansfn » Tue Nov 15, 2016 7:52 am

It's ages since I wrote this extension, but reading the included documentation (which is accessible from the extension list in your PivotX), I think the right syntax is:

Code: Select all
<table class="table table-hover" [[ jquery_tablesorter options='sortList: [ [3,0] ]' ]]>
hansfn
Developer
 
Posts: 3280
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Tablesorter extension

Postby winters » Tue Nov 15, 2016 4:12 pm

Thanks so much Hans!

Have a nice day!
winter
winters
 
Posts: 82
Joined: Thu Jan 13, 2011 9:09 pm


Return to 2.x Extensions

Who is online

Users browsing this forum: No registered users and 1 guest

cron