Sorting table

More
14 years 10 months ago #1887 by lcdservices
Sorting table was created by lcdservices
Is there any easy way to enable a frontend table type template to be sortable?

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #1889 by kenmcd
Replied by kenmcd on topic Sorting table
.
There is another user who has added table sorting using the Phatfusion Sortable Table javascript in his FLEXIcontent template.

Demo page
facteur4.net/biblond/index.php?o ... &Itemid=73

You can see the javascript in the /agenda/ template folder here:
facteur4.net/biblond/components/ ... leTable.js

Forum thread here (in French)
www.flexicontent.org/forum/index ... =viewtopic

Phatfusion Sortable Table script
www.phatfusion.net/sortabletable/


.

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #1895 by lcdservices
Replied by lcdservices on topic Sorting table
That worked pretty easily. Thanks. I'd used phatfusion a while ago, but hadn't thought of it.

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #1896 by ben0it24
Replied by ben0it24 on topic Sorting table
I'm interested into that script alot.. but i don't know well Joomla.. and i don't know how to integrate that script to it.

If someone could help me out on that.

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #1903 by lcdservices
Replied by lcdservices on topic Sorting table
I've attached a zip file with the modified template file (based on the default template, which is table-based), and the phatfusion sortable table files.

The mods will respect date type fields, and assume everything else is a string.

Also note that I changed the sortableTable.js file to process date fields in the standard American format (MM/DD/YY) rather than European (DD/MM/YY). You can restore line 88 and comment out line 89 if you want to revert.

I'm pretty sure I fully genericized it (pulled out my site-specific alterations), but you may want to diff against the original template file just to make sure.

You should be able to just drop these files into your template folder (probably want to make a copy of the default for this purpose).
Attachments:

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #1904 by bsky92
Replied by bsky92 on topic Sorting table
Hi

Thanks a lot for this file :)

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.409 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline