none
custom edit page button?

    Question

  • Hi all

    I want to create a custom "Edit" page button on our page layout because we will hide the ribbon. 

    I found the javascript for editing a page, but we need to do it programatically. I am struggling to find a way of doing it programatically. Any ideas how this can be done? 

    Regards

    Thursday, June 14, 2012 12:00 PM

All replies

  • Add a button on your page and on click of the button call the click event of the hidden Edit button.

    Thanks, Neha Navale

    Thursday, June 14, 2012 12:56 PM
  • Hi Neha and Thanks for you input.

    Can't do that, because when restricted users will click, they will get a permissions denied message. 

    Thursday, June 14, 2012 1:06 PM
  • Hi Neha and Thanks for you input.

    Can't do that, because when restricted users will click, they will get a permissions denied message. 

    And if you use SPSecurity.RunWithElevatedPrivileges?


    I find it distasteful to beg for 'Mark as Answer' and 'Mark as helpful'. It's supposed to be about helping people, not about getting the high score.

    Monday, June 18, 2012 12:47 PM