sitecore6 - Sitecore: Programmatically Exit Edit Mode in Page Editor -


when in sitecore's page editor mode clicks edit button, have div's style set

 top: 0;  

so appears on top of page editor buttons (save, save , close, insert, etc..). div prevents content editor using normal page editor buttons , forces them use custom save, save , close, , close buttons have added div.

is there way programmatically exit edit mode whenever click on custom close or save , close button? not want log them out of page editor (just exit them out of edit mode). have 1 page doing this, rather not changing configurations in sitecore achieve this.

check out post: in sitecore, how change or set pagemode

it looks can do:

context.site.setdisplaymode(sitecore.sites.displaymode.normal, sitecore.sites.displaymodeduration.resetafterrequest); 

or, can add sc_mode=normal or sc_mode=preview url's query string.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -