示例#1
0
        public static void OpenItem(Item item)
        {
            Assert.IsNotNull(item, "item is null");

            Sitecore.Text.UrlString parameters = new Sitecore.Text.UrlString();
            parameters.Add("id", item.ID.ToString());
            parameters.Add("fo", item.ID.ToString());
            parameters.Add("la", item.Language.Name);
            parameters.Add("vs", item.Version.Number.ToString());
            parameters.Add("sc_content", item.Database.Name);
            Sitecore.Shell.Framework.Windows.RunApplication("Content editor", parameters.ToString());
        }
示例#2
0
        public static void OpenItem(Item item)
        {
            Assert.IsNotNull(item, "item is null");

            Sitecore.Text.UrlString parameters = new Sitecore.Text.UrlString();
            parameters.Add("id", item.ID.ToString());
            parameters.Add("fo", item.ID.ToString());
            parameters.Add("la", item.Language.Name);
            parameters.Add("vs", item.Version.Number.ToString());
            parameters.Add("sc_content", item.Database.Name);
            Sitecore.Shell.Framework.Windows.RunApplication("Content editor", parameters.ToString());
        }