Copied to clipboard

Flag this post as spam?

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


  • Kasper 9 posts 29 karma points
    Mar 16, 2011 @ 07:38
    Kasper
    0

    Umbraco 4.6 multilevel custom section...

    Hi guys hope you can help me with this one, cant seem to find the error.... :)

    the tree generates like this

    - Nye transaktioner
    --Nye transaktioner
    ---Nye transaktioner
    ----Nye transaktioner
    -----Nye transaktioner

    ------ An so on

     

      public override void Render(ref XmlTree Tree)
    {
    Tree.treeCollection.Clear();

    if (this.id == this.StartNodeID)
    {
    var newTransactions = XmlTreeNode.Create(this);
    newTransactions.NodeID = "10";
    newTransactions.NodeType = "UniqueNewTransactions";
    newTransactions.Text = "Nye transaktioner";
    newTransactions.Icon = "newtransactions.gif";
    newTransactions.HasChildren = true;
    newTransactions.Source = this.GetTreeServiceUrl(newTransactions.NodeID);
    newTransactions.Menu.Clear();
    RootNodeActions.Clear();
    //newTransactions.Menu = null;
    Tree.Add(newTransactions);
    }
    else if (this.id == 10)
    {
    var newTransactions1 = XmlTreeNode.Create(this);
    newTransactions1.NodeID = "UniqueNewTransactions1";
    newTransactions1.NodeType = "UniqueNewTransactions1";
    newTransactions1.Text = "Måneder";
    newTransactions1.Icon = "newtransactions.gif";
    newTransactions1.HasChildren = true;
    newTransactions1.Source = this.GetTreeServiceUrl(newTransactions1.NodeID);
    newTransactions1.Menu.Clear();

    //newTransactions.Menu = null;
    Tree.Add(newTransactions1);


    }



    }

     

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Mar 16, 2011 @ 07:41
    Jan Skovgaard
    0

    Hi Kasper

    And how would you like it to be generated? And is the above making use of the Umbraco API?

    /Jan

  • Kasper 9 posts 29 karma points
    Mar 16, 2011 @ 07:46
    Kasper
    0

    Yes iam making use of the umbraco API

    The tree should be generated like this

    - Nye transaktioner
    -- Måneder

     

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies