Try our conversational search powered by Generative AI!

Edit Mode URL

Vote:
 

Whats the best way for me to get the edit mode url if i have a PageData object

i.e. build something up like : http://localhost:49000/secret/ui/CMS/edit/Default.aspx?id=31&mode=editmode

Or do i have to get the url from episerver.config and pass in the pageID ?

#62631
Oct 31, 2012 10:51
Vote:
 
public static string EditURL(this PageData page)
{
            return string.Format(
                "{0}default.aspx?id={1}&epslanguage={2}&selectededitpaneltab=1",
                UriSupport.AbsoluteUrlFromUIBySettings("edit/"),
                page.PageLink,
                page.LanguageBranch);
}

    

#62643
Edited, Oct 31, 2012 13:36
Vote:
 

Thank you very much especially about the selectededitpaneltab attribute did not have a clue about that one


Cheers


Minesh

#62651
Oct 31, 2012 16:08
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.