Sitecore: Linking to Sitecore editor from an .aspx page

This tip comes from Thomas Stern, who got the tip from the Sitecore support team. I am not very well founded in the Sitecore XAML development, so I often find myself using an .aspx page to extend the Sitecore shell.
And sometimes I need my own .aspx page to open the Sitecore editor at a certain Sitecore item. I thought that was impossible, untill Thomas Stern showed me how to do that.

In order to run the Sitecore content editor from an .aspx page, you need to be logged into Sitecore in the shell domain. Then you call the Sitecore client like this:

/sitecore/shell/Applications/Content Manager/Default.aspx?fo={AA7D559F-ABA5-8F6A-ABCD-0ABDF7E74EE1}

This opens the Sitecore editor at the item specified in the “fo” parameter.
There are more parameters:

  • fo = The item to open the Sitecore editor at
  • la = The language to open
  • vs = The version to open
  • mo=preview. This parameter removes the content tree at the left side.

To open the Sitecore editor in a new window by clicking a button from your own .aspx page, you can do the following: Create an ordinary asp:Button control and extend the OnClientClick property:

Item myItem = MySitecoreItemToOpen();
myButton.OnClientClick = "'/sitecore/shell/Applications/Content Manager/Default.aspx?fo=" + myItem.ID + "'); return false;";


About briancaos

Developer at Pentia A/S since 2003. Have developed Web Applications using Sitecore Since Sitecore 4.1.
This entry was posted in c#, Sitecore 6 and tagged , , . Bookmark the permalink.

6 Responses to Sitecore: Linking to Sitecore editor from an .aspx page

  1. mdzieg says:

    This opens content editor directly, but how to open it inside sitecore desktop?

  2. Pingback: Open Sitecore Content Editor from the Page Editor « Brian Pedersen’s Sitecore and .NET Blog

  3. Max Rafferty says:

    Hi Brain,
    Do you know if this is a complete list of these query parameters? I am wondering if it is possible to open an item with a particular ribbon menu section open, or even expand a particular section within an item. I realize this is an older post, but I can’t seem to find any mention of this functionality anywhere else!

  4. briancaos says:

    I got this info from the Sitecore support team, and I don’t think there are any more parameters than the ones described.

  5. Sen Gupta says:

    It was great help Brian. Specially the version parameter, all around web common mis-conception that it is ver though it is vs.

  6. Pingback: Which of my old Sitecore posts are still valid in Sitecore 9? | Brian Pedersen's Sitecore and .NET Blog

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.