SharePoint - Redirect to wiki page in edit mode programatically

Asked By Mary K on 21-Mar-12 05:08 AM
Hello!

How can I redirect to wiki page in edit mode programatically?

Thanks a lot in advance!
kalpana aparnathi replied to Mary K on 21-Mar-12 05:12 AM
hi,

In  Developer Tools you'll see that the Edit button calls this javascript function:

                           CoreInvoke("PageActionClick", this);

So on page load, you need to be call the function somehow, but the second parameter cannot be "this" anymore, it needs to send the edit button object as reference.
                            CoreInvoke("PageActionClick", $("ctl00_PageStateActionButton"));


Regards,
Mary K replied to kalpana aparnathi on 21-Mar-12 05:19 AM
Thank you for a quick answer!
I have seen this solution on the web, but the problem is that I must redirect from another page(not from this page to edit mode). How can I pass the adress of a page to which I should redirect?
kalpana aparnathi replied to Mary K on 21-Mar-12 05:23 AM
hi,

can you try this? if not, then  use this way for rediretion in sharepoint.

Open the "Home Directory" tab and click "A redirection to a URL" then type your SharePoint URL in the "Redirect to:" box. It should look like this:



Regards,
Mary K replied to kalpana aparnathi on 21-Mar-12 05:46 AM
Thank you, kalpana, bit this is not what I need, I didn't explain well.
I have several webparts that display different wiki pages. Each webpart contains an edit button(I have created it). When a user clicks on this button he should be redirected to an origin wiki page in edit mode.
Thanks again!