We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New Extension: Edit Table Plus (Table Sorting for 1.6.x!)

Development and Programming

Wes Rice's avatar
Wes Rice
103 posts
15 years ago
Wes Rice's avatar Wes Rice

I’ve written an extension inspired by Derek Jones’ Simplify Edit Table extension. It also uses the wonderful jQuery tablesorter plugin, found here.

Features:

  • Add dynamic table sorting to the table by clicking on the column heading
  • Hold shift and select multiple column headings to do perform multiple sorts
  • Hide the search form above the entries table
  • Create a custom “results per page” select in the search form above the entries table

Important Notes:

The only data sorted is what is actually on the page. If there is any pagination of entries, not all of the entries will be included in the sort. To mitigate this problem, select 150 results in the search form and hit search.

Features to come:

  • Javascript based pagination that will allow for results to be sorted across multiple pages.
  • Live text search

Releases:

1.2.0 - Removed feature to hide columns in edit table. The Seesaw extension does an exceptional job of performing this task and can be used in tandom with Edit table Plus. http://ellislab.com/forums/viewthread/139168/ - Added new settings form with better group of settings - Added the ability to hide the search form - Added the ability to hide only the results select within the search form - Added the ability to set all of the options to appear in the results select. An additional option of “Show All” is automatically added as an option. - Added the ability to set a default number of entries to be shown per page. If you want to set a fixed number of entries per page that cannot be changed, set your number here and hide the results select. - Add-on is now multi-language friendly

1.1.1 - - Fixed bug that rendered a rogue new line break on the edit page

1.1.0 - - Added the ability to hide the entry id column - Added the ability to set the default column to sort by - Added the ability to define how to sort the default column - Added the ability to choose whether the edit table is alter server side via php or client side via javascript

1.0.0 - -Inititial Release

Let me know if you have any problems or suggestions.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
15 years ago
Mark Bowen's avatar Mark Bowen

Absolutely fantastic!! 😊

This is something that should be installed as default I believe. Will definitely put this one into my default set from now on.

Thanks for sharing this with us all.

Best wishes,

Mark

       
Dylan Smith/Context Design's avatar
Dylan Smith/Context Design
346 posts
15 years ago
Dylan Smith/Context Design's avatar Dylan Smith/Context Design

Very nice. Just a few days ago, I was hacking away at the cp.publish file to get rid of that stupid trackbacks column.

       
russlipton's avatar
russlipton
305 posts
15 years ago
russlipton's avatar russlipton

2.0. 2.0. 2.0. Please.

       
Danny T.'s avatar
Danny T.
426 posts
15 years ago
Danny T.'s avatar Danny T.

With all the praise Edit Tab Ajax gets, I’m surprised this isn’t WAY more popular.

       
Ruud L. Heerkens's avatar
Ruud L. Heerkens
45 posts
15 years ago
Ruud L. Heerkens's avatar Ruud L. Heerkens

Nice extension !

I did however find some issues when you have the Restricted entries extension enabled (http://www.purple-dogfish.co.uk/free-stuff/restrict-entries). The table header does not match the columns anymore. As a result the sorting is not matching the header.

  • Ruud -
       
Wes Rice's avatar
Wes Rice
103 posts
15 years ago
Wes Rice's avatar Wes Rice

Thanks Ruud. I’m not familiar with the restricted entries extension, but I’ll look into it.

       
Ruud L. Heerkens's avatar
Ruud L. Heerkens
45 posts
15 years ago
Ruud L. Heerkens's avatar Ruud L. Heerkens

Hi,

Just did a quick test, as I know there are several other extensions out there which modify the edit table as wel. Webee Quick (http://onnogroen.nl/webee/ee/) has the same problem sorting the table when enabled.

  • R -
       
Wes Rice's avatar
Wes Rice
103 posts
15 years ago
Wes Rice's avatar Wes Rice

I’m thinking it has to do with a the way I remove some of the columns with regular expressions. I don’t think their criteria are greedy enough. I’ll be able to look into this more this week, but thanks for pointing it out.

       
Danny T.'s avatar
Danny T.
426 posts
15 years ago
Danny T.'s avatar Danny T.

Just wanted to point out that this is not compatible with Seesaw, which actually makes absolute sense considering they both can hide columns. Feature Request Can we have an option to choose a default sort column (ascending or descending) inside the panel for Edit Table Plus? Bugs The checkbox/select column doesn’t allow bulk deselection.

       
Wes Rice's avatar
Wes Rice
103 posts
15 years ago
Wes Rice's avatar Wes Rice

I was not aware of Seesaw and its functionality. I’m seriously considering taking the column hiding out and leaving that to Seesaw, and only focus on the sorting.

       
Danny T.'s avatar
Danny T.
426 posts
15 years ago
Danny T.'s avatar Danny T.

Seesaw is a bit more advanced with its column hiding and also allows custom field to be displayed in columns and per-weblog specific display settings. Thanks for the feature suggestion considerations! =)

       
johndwells's avatar
johndwells
94 posts
15 years ago
johndwells's avatar johndwells
I was not aware of Seesaw and its functionality. I’m seriously considering taking the column hiding out and leaving that to Seesaw, and only focus on the sorting.

Hi lockwesmonster,

Nice addon you have here, well done! I’m the developer for Seesaw, and obviously it’d be great if these could play nice together.

I’ve downloaded your files and had a quick play. We approach column hiding/revealing in different ways (I’m not proud to admit that I forego clever regexp in lieu of near-blind assumptions as to what’s there). Though the real conflict appears to lie in the table and thead HTML elements that you need there, and which my addon isn’t aware of.

Perhaps we can take this convo offline, see what we can do. I’ll PM you in a bit…

Cheers

       
eyevariety's avatar
eyevariety
158 posts
15 years ago
eyevariety's avatar eyevariety

Would love to see this work with: http://nicolasbottari.com/index.php/expressionengine/nb_show_custom_field_data/ and similar extensions.

       
Adam Khan's avatar
Adam Khan
319 posts
15 years ago
Adam Khan's avatar Adam Khan

Nice one. I like that they’re larger too. A bit of Fitt’s Law there.

       
1 2 3 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.