1 of 3
1
New Extension: Edit Table Plus (Table Sorting for 1.6.x!)
Posted: 04 March 2010 03:09 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  145
Joined  09-18-2008

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://expressionengine.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
Click thumbnail to see full-size image
File Attachments
edit_table_plus_1.2.0.zip  (File Size: 22KB - Downloads: 273)
Profile
 
 
Posted: 04 March 2010 03:31 PM   [ Ignore ]   [ # 1 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13725
Joined  04-15-2006

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

Profile
 
 
Posted: 06 March 2010 06:10 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  331
Joined  02-05-2009

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

Profile
 
 
Posted: 06 March 2010 11:23 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  484
Joined  08-31-2004

2.0. 2.0. 2.0. Please.

Profile
 
 
Posted: 08 March 2010 03:09 PM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  555
Joined  04-23-2008

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

Profile
 
 
Posted: 09 March 2010 06:36 PM   [ Ignore ]   [ # 5 ]  
Grad Student
Rank
Total Posts:  49
Joined  01-11-2006

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 -

Profile
 
 
Posted: 09 March 2010 06:38 PM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  145
Joined  09-18-2008

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

Profile
 
 
Posted: 09 March 2010 06:57 PM   [ Ignore ]   [ # 7 ]  
Grad Student
Rank
Total Posts:  49
Joined  01-11-2006

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 -

Profile
 
 
Posted: 09 March 2010 10:49 PM   [ Ignore ]   [ # 8 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  145
Joined  09-18-2008

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.

Profile
 
 
Posted: 10 March 2010 01:52 AM   [ Ignore ]   [ # 9 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  555
Joined  04-23-2008

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.

Profile
 
 
Posted: 10 March 2010 08:23 AM   [ Ignore ]   [ # 10 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  145
Joined  09-18-2008

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.

Profile
 
 
Posted: 10 March 2010 08:41 AM   [ Ignore ]   [ # 11 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  555
Joined  04-23-2008

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

Profile
 
 
Posted: 18 March 2010 04:40 AM   [ Ignore ]   [ # 12 ]  
Grad Student
Avatar
Rank
Total Posts:  63
Joined  03-25-2009
lockwesmonster - 10 March 2010 01: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

Profile
 
 
Posted: 23 March 2010 03:12 PM   [ Ignore ]   [ # 13 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  180
Joined  06-27-2007

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

 Signature 

twitter

Profile
 
 
Posted: 23 March 2010 05:22 PM   [ Ignore ]   [ # 14 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  461
Joined  12-20-2002

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

 Signature 

Who ain’t a slave? - Ishmael

Profile
 
 
Posted: 23 March 2010 07:03 PM   [ Ignore ]   [ # 15 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  241
Joined  05-04-2007

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

Profile
 
 
Posted: 23 March 2010 09:52 PM   [ Ignore ]   [ # 16 ]  
Summer Student
Total Posts:  5
Joined  06-16-2009

Note to all…

You can uninstall the Trackback module on the Modules tab which will stop the trackback column from showing on the Edit tab.

Anna

Profile
 
 
Posted: 24 March 2010 03:29 AM   [ Ignore ]   [ # 17 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  222
Joined  01-19-2009

looks like a lovely extension… except i was getting the following error:

“Unable to load the following language file:

lang.edit_table_plus.php “

after a lot of head scratching it’s because you have mis-spelt language as the folder name, so when i FTP’d up the “extensions”, “langauge” and “lib” folders for the add-on, it wasn’t putting the above file in the correct place.

 Signature 

moogaloo.com

twitter | facebook | dribbble

Free Agent - invoicing, time tracking & accounting made easy - 10% off for life.

Profile
 
 
Posted: 24 March 2010 08:15 AM   [ Ignore ]   [ # 18 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  145
Joined  09-18-2008

@moogaloo

Thanks for noticing. I’ll correct this when I have time.

Profile
 
 
   
1 of 3
1