Currently we can only edit fields. But in D7 we have other things we would like to edit, like node title, taxonomy title, description, author and so on.

I've been working on adding support to taxonomy title and description. I need to mess around with _edit_is_special_field(), add a $subform_id, the corresponding form, and validation and submit callbacks.

There should be hooks for all those things so that modules provide support for inline editing this (like a map for example).

Comments

wim leers’s picture

Sensible. Though I'm not sure it's always feasible; since it requires theme layer fiddling. If we can't offer a clean API, then do we want to support it?

nod_’s picture

we have edit_wrap_pseudofield() for the theme layer. Might not be a perfect solution but it mostly works. At least it's a pain to add those things all over the place. There are taxonomy, users, blocks, site name and so on that we may want to expose for inline-edit.

webchick’s picture

Priority: Normal » Major

This would be pretty killer if we could pull it off.

nod_’s picture

Added a couple of alter hooks for editor configuration and metadata needed for the scald integration: http://drupalcode.org/project/edit.git/blob/refs/heads/7.x-1.x:/edit.api...

wim leers’s picture

Status: Active » Postponed

#4 is not entirely clear on what it added precisely, but it's probably this and this.

This would be killer, but it's also a nice-to-have. It doesn't make sense to start working on this until everything else works reliably. It's a 2.0 thing, I'd say, because if we make this possible via a set of hacks, then that will become a maintenance nightmare.

wim leers’s picture

Title: Add a way to extend inline-editable things » Add a way to make things that don't use Field API in-place editable
wim leers’s picture

Assigned: Unassigned » wim leers
Status: Postponed » Active
Issue tags: +Spark

As of this commit this has mostly been addressed. It just needs to formalized/finalized/documented further.

vulfox’s picture

Very nice!

How about blocks then?

wim leers’s picture

Issue summary: View changes
Status: Active » Closed (fixed)

The Drupal 8 backport (#2111667: Backport Drupal 8's Edit module to Drupal 7) has fixed this! It brings explicit support for custom render pipelines by defining a custom view mode and implementing hook_edit_render_field(). See edit.api.php.