Closed (fixed)
Project:
Edit
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
22 Jan 2013 at 13:04 UTC
Updated:
3 Dec 2013 at 20:44 UTC
Jump to comment: Most recent
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
Comment #1
wim leersSensible. 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?
Comment #2
nod_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.
Comment #3
webchickThis would be pretty killer if we could pull it off.
Comment #4
nod_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...
Comment #5
wim leers#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.
Comment #6
wim leersComment #7
wim leersAs of this commit this has mostly been addressed. It just needs to formalized/finalized/documented further.
Comment #8
vulfox commentedVery nice!
How about blocks then?
Comment #9
wim leersThe 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(). Seeedit.api.php.