Sorting table

More
16 years 1 month 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
16 years 1 month 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
16 years 1 month 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
16 years 1 month 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
16 years 1 month 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).

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

More
16 years 1 month 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.

More
12 years 2 months ago #42097 by bytekultur
Replied by bytekultur on topic Sorting table
Hi, is this a sorting by javascript? Unfortunately the links don't work any more. I am looking for a php version of sorting the tables. I tried to add theses request parameters in table head links:
?limit=10&orderby=order&orderdir=asc

It works if I use it with standard fields, but with custom fields there is no way to order asc and desc as this seems to be a fix parameter.

Any idea? I am probably also talking about a newer version of flexicontent, too (2.0.2).

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

More
12 years 2 months ago #42141 by ggppdk
Replied by ggppdk on topic Sorting table
Hello

- about v2.0.2, you should update to v2.1.2 r1806

- in configuration you can order by custom field, but frontend ordering override by user selection, is available only for CORE fields and properties,

allowing ordering by custom field is in our TODO for the frontend ordering selector

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
12 years 2 months ago #42829 by bytekultur
Replied by bytekultur on topic Sorting table
Thank you, that's what I thought. It will be cool if custom field ordering override is realised. What I am trying to do is create table headers / links with a GET Param to order / filter. If the frontend order / filter override is possible, it would give us the option to flexibly target elements in lists also from a module, in our case a calendar where we want to link a day to the filtered content list of events happening that day. But there are unlimited other uses for it.

I will keep reading the changelogs then!
Regards,
Terry

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

Moderators: vistamediajoomlacornerggppdk
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
Save