Copied to clipboard

Flag this post as spam?

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


  • Arno L. Kristiansen 43 posts 63 karma points
    Nov 26, 2012 @ 21:33
    Arno L. Kristiansen
    0

    A leaf is missing in my custom made AppTree

    Hi..

    I have a big problem...

    I have made a nye leaf for my custom made AppTree...

    Load fil is made:

    using System;

    using System.Collections.Generic;

    using System.Web;

     

    using umbraco.cms.presentation.Trees;

    using umbraco.DataLayer;

    using umbraco.BusinessLogic;

     

    namespace SB_kartotek

    {

        public class loadBilledeAdm: BaseTree

        {

     

            public loadBilledeAdm(string application) :

                base(application) { }

     

     

     

            protected override void CreateRootNode(ref XmlTreeNode rootNode)

            {

                rootNode.Icon = FolderIcon;

                rootNode.OpenIcon = FolderIconOpen;

                rootNode.NodeType = TreeAlias;

                rootNode.NodeID = "init";

            }

     

            public override void RenderJS(ref System.Text.StringBuilder Javascript)

            {

                Javascript.Append(@"

                            function openAdmBillede()

                            {

                               parent.right.document.location.href = 'plugins/administrationBillede.aspx';

                            }

     

                    ");                                             

     

            }

     

            public override void Render(ref XmlTree tree)

            {

     

     

     

                    XmlTreeNode xNode = XmlTreeNode.Create(this);   

     

     

                    xNode.Text = "Billede Adm";

                    xNode.Icon = "barn.gif";

                    xNode.Action = "javascript:openAdmBillede()";

                    tree.Add(xNode);

     

     

     

     

     

            }

        }

    }

     

    The entry into database is madeed:

    But its not shown in my administraion tool:

    What can be my problem ?? 

Please Sign in or register to post replies

Write your reply to:

Draft