Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • teus 42 posts 74 karma points
    Jun 09, 2015 @ 14:58
    teus
    0

    Load .aspx page in right iFrame

    We have a few inherited aspx pages(from an old project) we want to load in umbraco 7. An option is to change them to usercontrols and add them to the Dashboard.config so they appear in a new tab, but it would nicer to make a new section and a tree with some items which when clicked load the aspx page in the iFrame on the right.

    The same way for instance SEOChecker loads the Redirect manager(see screenshot). Contour does something similar I think.

    I've come as far as to create a section and some items, but the loading of the aspx page eludes me.

    Is this something which is done easily? Any help or redirection to an answered topic is much appreciated

    Regards

    Teus

    protected override TreeNodeCollection GetTreeNodes(string id, FormDataCollection queryStrings)
           {
               //check if we're rendering the root node's children
               if (id == Constants.System.Root.ToInvariantString())
               {
                   var tree = new TreeNodeCollection
               {
                   CreateTreeNode("1", id, queryStrings, "My Node 1"), 
                   CreateTreeNode("2", id, queryStrings, "My Node 2"), 
                   CreateTreeNode("3", id, queryStrings, "My Node 3")
               };
                   return tree;
               }
               //this tree doesn't suport rendering more than 1 level
               throw new NotSupportedException();
           }
    

    enter image description here

Please Sign in or register to post replies

Write your reply to:

Draft