1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Can't edit properties for an external page

Can't edit properties for an external page

2 posts, 0 answered
  1. Bart Welch
    Bart Welch avatar
    64 posts
    Registered:
    10 Jul 2009
    29 Jan 2010
    Link to this post
    I have created a page within Sitefinity that links to an external page of the same domain.  I am needing to delete this page and whenever i click on the page in Sitefinity, it opens up the actual page.  I cannot get to the properties of the page nor can I delete this item.  Please help.

    Bart
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    31 Jan 2010
    Link to this post
    Hi Bart Welch,

    Generally the page should be opened in the iframe window. Most probably you have some code on this page that somehow breaks the backend. You could try

    1. Remove the logic from the external page, so that this should allow you to edit it.
    2. Remove the page from sitefinity using the code below:

    var Manager = new CmsManager();
              IList allpages = Manager.GetPages();
              foreach (ICmsPage p in allpages)
              {
                  if (p.PageType == CmsPageType.External)
                  {
                      if (p.MenuName.Equals("MyExternalPage"))
                      {
                          ICmsPage removePage = (ICmsPage)Manager.GetPage(p.ID, true);
                          Manager.DeletePage(removePage);
                          Response.Write("the external page has been deleted");
                      }
                      else
                      {
                          Response.Write("there is no page with this name");
                      }
                  }
              }


    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered