Part of #1879820: [meta] Get the D7 version of Edit production-ready.

This one could be tricksy if we don't backport the D8 toolbar.

Comments

webchick’s picture

So we want to do this in a way that doesn't involve a hard requirement on navbar module. Idea for now is exposing a simple, ugly block and then we can work on integration with the core toolbar. We should try and get Jesse's input (who's AFK for a couple of weeks) on this because she spent a bunch of time thinking through this problem which ultimately led to the improved design on the D8 toolbar.

nod_’s picture

This is now a block in the branch I'm working on.

nod_’s picture

Status: Active » Postponed (maintainer needs more info)

Postponing until we get a better idea than a block for exposing the edit action.

wim leers’s picture

A related, but obsolete issue: #1828276: Integrate with the navbar module.

webchick’s picture

Status: Postponed (maintainer needs more info) » Active

Well, we're going to need a better idea soon. :) You can't actually turn Edit mode on right now at all in Spark.

What do you need to unblock you here? Some of Kevin's time? Jesse's?

webchick’s picture

StatusFileSize
new45.22 KB

Ah, ok. So you can turn it on, via the "In-place operations" block on e.g. a full node page:

Edit mode toggle is in a block to the left sidebar.

Good to know, I'll need to add that block to the panels page in Spark.

Still though, that's definitely not optimal. :)

wim leers’s picture

I think this is blocked on us sitting together and discussing which is the best approach. It's at least technically hard and usability-wise suboptimal to integrate with the Drupal 7 toolbar, but its also suboptimal to force a specific toolbar on those that want to use Edit. So … we'll have to figure out the best (least sucky) middle road.

webchick’s picture

Roger that. Let's talk about it on the planning call Monday. Will report back here after.

nod_’s picture

Status: Active » Needs review

You can now call edit_trigger_link() to get the a render array that'll output a 'quick edit' link with everything it needs to trigger inline edit.

Other Ideas welcome, at least now other modules can easily add this link wherever.

wim leers’s picture

Nice :)

This is about as much as you can do at this point AFAICT.

nod_’s picture

Priority: Critical » Normal

Demoting, all the pieces are available It's only a matter of knowing how to adjust them now.

nod_’s picture

Status: Needs review » Needs work

NW since we don't have a default way of properly showing the link right now.

wim leers’s picture

zbabtkis’s picture

StatusFileSize
new1.79 KB

Would it make sense to add a a local task to node views? Not a universal solution, but that's been my approach for the website I've been working on. Here's the patch if anyone is interested.

wim leers’s picture

Title: Provide "edit mode" toggle in Toolbar » "Quick edit" local tasks for nodes, views, etc — i.e.: the exact same interaction as the D8 version?
Category: task » feature
Status: Needs work » Active
Issue tags: +sprint, +Spark

#12/#13: that's supported by now: edit_trigger_link(), documented in the >alpha 6 README.


#14: Hah, ironically, that's how we made it work in Drupal 8 :)

The problem with that approach is that we limit in-place editing to only sites whose themes support Contextual Links, which are definitely not all of them.

Though, I personally am hugely in favor. Even if only for the fact that it'll simplify maintainability significantly. Curious what others think…

gábor hojtsy’s picture

Issue tags: -sprint, -Spark

I think using the per-entity interaction is superior because it makes people understand what saving will affect. Especially if/once we put in draft states, etc. if the boundaries of the thing being edited are not clear, then how do you know what are you making a draft, etc?

gábor hojtsy’s picture

Issue tags: +sprint, +Spark
wim leers’s picture

I think this is my top priority for next week's D7 day.

wim leers’s picture

Status: Active » Postponed
Issue tags: -sprint

This will happen, but it is blocked on #1678002: Edit should provide a usable entity-level toolbar for saving fields — once that is committed, we will backport that to the Drupal 7 version of Edit.

wim leers’s picture

Priority: Normal » Critical

And this is definitely critical.

tanc’s picture

Looks like #1678002 is committed, is that ready for backporting?

wim leers’s picture

A per-entity "Quick edit" link is coming soon now.

wim leers’s picture

Title: "Quick edit" local tasks for nodes, views, etc — i.e.: the exact same interaction as the D8 version? » Per-entity "Quick edit" link — i.e.: the same interaction as the D8 version
Issue summary: View changes
wim leers’s picture

Status: Postponed » Closed (duplicate)

The Drupal 8 backport (#2111667: Backport Drupal 8's Edit module to Drupal 7) fixed this!

jweirather’s picture

Priority: Critical » Major

Forgive me if I've missed something obvious, but was there a resolution to this? I'm not seeing the block or the link when viewing the node page, and as such, can only enable edit through contextual links. I'm also not finding the function edit_trigger_link() in code.

Using quickedit 7.x-1.1.

Any guidance appreciated.