EllisLab text mark
Advanced Search
1 of 4
1
   
New Extension: Edit Table Plus (Table Sorting for 1.6.x!)
Posted: 04 March 2010 05:09 PM   [ Ignore ]
Avatar
Joined: 2008-09-18
123 posts

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.

Image Attachments
Screen shot 2010-03-04 at 2.48.35 PM.pngScreen shot 2010-03-04 at 3.05.14 PM.png
File Attachments
edit_table_plus_1.2.0.zip  (File Size: 22KB - Downloads: 312)
 
Posted: 04 March 2010 05:31 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2006-04-15
12649 posts

Absolutely fantastic!! grin

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

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

 
Posted: 06 March 2010 08:10 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2009-02-06
375 posts

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

 Signature 

TucsonSentinel.com - we’re watching Tucson

LIONpublishers.com - Local Independent Online News Publishers

 
Posted: 07 March 2010 01:23 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2004-08-31
340 posts

2.0. 2.0. 2.0. Please.

 
Posted: 08 March 2010 05:09 PM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2008-04-23
532 posts

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

 
Posted: 09 March 2010 08:36 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Joined: 2006-01-11
49 posts

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 -

 
Posted: 09 March 2010 08:38 PM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Avatar
Joined: 2008-09-18
123 posts

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

 
Posted: 09 March 2010 08:57 PM   [ Ignore ]   [ # 7 ]   [ Rating: 0 ]
Joined: 2006-01-11
49 posts

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 -

 
Posted: 10 March 2010 12:49 AM   [ Ignore ]   [ # 8 ]   [ Rating: 0 ]
Avatar
Joined: 2008-09-18
123 posts

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.

 
Posted: 10 March 2010 03:52 AM   [ Ignore ]   [ # 9 ]   [ Rating: 0 ]
Avatar
Joined: 2008-04-23
532 posts

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.

 
Posted: 10 March 2010 10:23 AM   [ Ignore ]   [ # 10 ]   [ Rating: 0 ]
Avatar
Joined: 2008-09-18
123 posts

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.

 
Posted: 10 March 2010 10:41 AM   [ Ignore ]   [ # 11 ]   [ Rating: 0 ]
Avatar
Joined: 2008-04-23
532 posts

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! =)

 
Posted: 18 March 2010 06:40 AM   [ Ignore ]   [ # 12 ]   [ Rating: 0 ]
Avatar
Joined: 2009-03-25
83 posts
lockwesmonster - 10 March 2010 03:23 PM

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

 Signature 

Pura Vida
John D Wells, Lead Developer
http://onedarnleyroad.com | http://johndwells.com

 
Posted: 23 March 2010 05:12 PM   [ Ignore ]   [ # 13 ]   [ Rating: 0 ]
Avatar
Joined: 2007-06-28
175 posts

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

 Signature 

twitter

 
Posted: 23 March 2010 07:22 PM   [ Ignore ]   [ # 14 ]   [ Rating: 0 ]
Avatar
Joined: 2002-12-20
388 posts

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

 Signature 

Who ain’t a slave? - Ishmael

 
Posted: 23 March 2010 09:03 PM   [ Ignore ]   [ # 15 ]   [ Rating: 0 ]
Avatar
Joined: 2007-05-04
216 posts

Really nice! Just this morning I was thinking how nice it would be to have an add-on that did exactly this. My clients will be thrilled to have this addition to their sites.

Thank you.

 Signature 

James Riordon | Out of ControlĀ®
Website Development & Maintenance | Montreal, Canada

 
1 of 4
1