Ticket #2284 (closed enhancement: wontfix)

Opened 2 years ago

Last modified 5 months ago

Extra Hooks in the Edit Page Table

Reported by: majelbstoat Assigned to: anonymous
Priority: normal Milestone:
Component: Administration Version: 2.0
Severity: normal Keywords: new hook manage pages table edit manage_pages_columns manage_pages_custom_column has-patch
Cc:

Description

This patch adds hooks so that plugin defined columns can be added to the manage pages table, like can currently be done with the manage posts table. It adds two new hooks: 'manage_pages_columns' and 'manage_pages_custom_column', which can be called in exactly the same way (and possibly with the same callback function) as 'manage_posts_columns' and 'manage_posts_custom_column'. It also moves all table row generation code into pagerows() regardless of if a search is being conducted or not, improving consistency and ease of future alterations.

Attachments

edit page hooks.diff (7.3 kB) - added by majelbstoat on 01/14/06 10:01:59.
Patch to add new hooks to the manage pages table.
edit_page_hooks_2.diff (5.6 kB) - added by steveluscher on 07/09/07 07:50:21.
How about something like this? I tried to change only what was necessary, and tried to preserve the colspan of the "Action" header on the edit-pages screen.

Change History

01/14/06 10:01:59 changed by majelbstoat

  • attachment edit page hooks.diff added.

Patch to add new hooks to the manage pages table.

01/14/06 10:10:14 changed by majelbstoat

  • keywords changed from new hook manage pages table edit manage_pages_columns manage_pages_custom_column to new hook manage pages table edit manage_pages_columns manage_pages_custom_column bg|has-patch.

01/14/06 10:37:47 changed by davidhouse

  • keywords changed from new hook manage pages table edit manage_pages_columns manage_pages_custom_column bg|has-patch to new hook manage pages table edit manage_pages_columns manage_pages_custom_column bg|has-patch bg|commit.

01/14/06 19:16:15 changed by skeltoac

  • severity changed from normal to enhancement.
  • milestone changed from 2.0.1 to 2.1.

Not in the scope of 2.0.1.

02/09/06 10:22:23 changed by majelbstoat

  • keywords changed from new hook manage pages table edit manage_pages_columns manage_pages_custom_column bg|has-patch bg|commit to new hook manage pages table edit manage_pages_columns manage_pages_custom_column.

The patch will have to be rewritten to take into account the changes made in changeset [3510]

09/09/06 01:52:02 changed by majelbstoat

If I rewrite a patch for this, will it be included?

10/11/06 17:12:42 changed by hgurol

Is this gonna be included?

thanks...

12/01/06 09:58:52 changed by matt

  • milestone changed from 2.1 to 2.2.

03/27/07 20:22:44 changed by foolswisdom

  • milestone changed from 2.2 to 2.3.

05/23/07 22:22:10 changed by majelbstoat

I'm still being asked about this by users of Gengo on a regular basis. Is this something the devs would be interested in including? No problem with doing the patch, just if it's not going to be considered I'll move on to something else...

05/30/07 15:33:09 changed by mark8barnes

Just wanted to add my support for this patch. It's needed for multi-lingual users who are beginning to use WordPress+Gengo as the CMS of choice. I don't understand why this keeps getting bumped from 2.1 to 2.2 and now 2.3 when it's an enhancement that someone is willing to write. All you gotta do is say "yes"!

05/30/07 15:48:26 changed by Otto42

The patch attached does a lot more than just "add hooks". What are all these changes doing?

Make a patch, make a good case for it being included, and maybe somebody will actually include it.

-1 to this patch, until an explanation is given and/or a better patch is created for this issue.

06/08/07 05:08:11 changed by rob1n

Is this still valid?

07/09/07 06:06:00 changed by steveluscher

I give a big +1 to the concept of this patch, if not to the actual patch uploaded on 01/14/06.

I'm developing a plugin that makes use of the manage_pages_columns and manage_pages_custom_column hooks, and just discovered that no similar hooks exist for the Manage > Pages screen.

07/09/07 07:50:21 changed by steveluscher

  • attachment edit_page_hooks_2.diff added.

How about something like this? I tried to change only what was necessary, and tried to preserve the colspan of the "Action" header on the edit-pages screen.

09/05/07 19:52:34 changed by foolswisdom

  • keywords changed from new hook manage pages table edit manage_pages_columns manage_pages_custom_column to new hook manage pages table edit manage_pages_columns manage_pages_custom_column has-patch.
  • milestone changed from 2.3 to 2.4 (next).

10/21/07 14:55:39 changed by scompt

I've just released a plugin which provides the 'manage_pages_columns' and 'manage_pages_custom_column' hooks. It hooks onto the wp action and records the extra column information which is then added into the dom using jQuery after the page is finished loading.

You can check it out at http://scompt.com/projects/manage-pages-custom-columns-in-wordpress

12/18/07 15:36:13 changed by pishmishy

Can we presume that since there's been no further discussion this plugin fixes the issue? If so recommend resolving as wontfix.

02/12/08 09:08:04 changed by pishmishy

  • status changed from new to closed.
  • resolution set to wontfix.
  • milestone deleted.