We now have a cleaner, and getting prettier, implementation of contextual links as per #601150: Improved UI for contextual links. The patch in #99 was committed and the outcome is that the contextual links for a region are now hidden until a user places their cursor over an editable region at which point a small/clickable cog icon appears in the upper right corner and the editable region is outlined with a dashed border. Discussion continues in that issue about styling the menu that appears when clicking the cog icon.

There was some discussion about the borders being overly intrusive since they appear no matter where you place your mouse which I agree can be a bit annoying.

This issue #602408: Adjust height of shortcut bar has some discussion about implementing an editing mode toggle, though is mostly about design of the toolbar/shortcut bar. Discussion summary:

1. What should the toggle be named? Possible suggestions include "Edit content", "Edit mode" and "Edit page". "Edit content" is thought to be to general.

2. Do we really need an editing mode toggle or should contextual links behave like they do in views (HEAD currently)?

If I understand correctly the intent of the edit mode toggle in that issue is that contextual links/borders do not appear on the page until a user has toggled editing mode for that page. Once editing mode has been toggled and a user places their mouse over an editable region the region is outlined and the contextual links menu appears. (This is what HEAD does currently without any sort of on/off toggle.)

Am I on track here?

If so, couple of questions. 1.) Does the editing mode toggle do anything else? 2.) Once toggled should it persist from page to page? If so, what is the best way to store that semaphore? Should it be on until toggled off? Should it persist across sessions? 3.) If a user is manually toggling edit mode is there a reason that we're hiding the contextual links until the mouse over a specific region? Would it be more intuitive if once editing mode was toggled the cog icon for each region just appeared on the page?

Comments

eojthebrave’s picture

http://drupal.org/node/601150#comment-2326428, and the few comments after it contain relevant thoughts. Mostly concern that the borders appearing around everything all the time is a bit overwhelming.

sun’s picture

A global editing mode toggle would have a (positive) performance impact when not browsing pages in edit mode.

But, how often would I need to reload a page to toggle the edit mode then? Like, daily? Like, hourly?

True, I can both comment on issues on d.o, but also be node/comment administrator.

But do I want to have to click on a link (somewhere, somewhere where my user role doesn't even have access to?) to enable the edit mode? To be able to do what I wanted to do afterwards?

yoroy’s picture

Status: Active » Closed (duplicate)
David_Rothstein’s picture

Status: Closed (duplicate) » Active

#616618: Allow contextual links to be disabled is a meta-issue touching on too many things at once. This one is nice and focused, so let's use it instead.

Note that there are dozens of comments, screenshots, discussion and some code for this already at #473268: D7UX: Put edit links on everything. It's a tough problem. And if it goes in the toolbar at all, #585776: Make 'edit mode' toggle available even when toolbar module is disabled certainly becomes relevant again.

I think it's clear that there are use cases for both types of behavior ("always on" as is currently in core, and "toggle-able" as proposed here). The question is whether both really need to be in core. We don't totally need to answer that question here though - if this doesn't go in core, a toggle for contextual links would still be great as a contrib module. So any work done won't be totally lost or anything.

Noyz’s picture

Any reason not to have a "edit in place" configuration setting where the toggle button is set to off, but can be turned on?

One issue that comes to mind is Views. Would Views' current edit in place toggle align with such an approach?

yoroy’s picture

Version: 7.x-dev » 8.x-dev

Not sure what's next for this. Do we need a global 'Edit' switch for the whole page?

tkoleary’s picture

Status: Active » Closed (fixed)
Chris Gillis’s picture

Marked as fixed? Maybe a link to some documentation to tell us how to do it? Can I turn off context menu for a certain panel for instance?