Is this possible? How would a user normally exit out of canvas mode? I guess I would have expected a button on the LiveEditingToolbar.
So far the only way I have figured out is to click "Log out", and log back in. But this is obviously a usability issue, and I feel like I'm missing something obvious here!
Generate link to exit from Canvas mode
Hiya,
Currently my logged in Users are presented with a link on the front end of the site, "Edit this page", which looks something like this:
How can I generate a similar link to exit out of Canvas mode?
Is this possible?
How would a user normally exit out of canvas mode? I guess I would have expected a button on the LiveEditingToolbar.
So far the only way I have figured out is to click "Log out", and log back in. But this is obviously a usability issue, and I feel like I'm missing something obvious here!
Well I have a solution - it works, but I am still very interested in how a user normally exits out of Canvas mode.
I ended up creating a User Control, and essentially duplicating the code from /umbraco/canvas.aspx.cs (but turning it off rather than on, of course).
So in my templates, my link looks like this:
if(umbraco.presentation.UmbracoContext.Current.LiveEditingContext.Enabled){%>
<a href="/system-pages/EndCanvasMode?redir==currentNode.NiceUrl%>">Stop editing page<a>
}%>
(with "/system-pages/EndCanvasmode" being an empty content node with the above user control embedded).
This feels like it should be a built in function somewhere - am I just not looking in the right place?
is working on a reply...