Copied to clipboard

Flag this post as spam?

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


  • Thijs 97 posts 117 karma points
    Oct 25, 2011 @ 14:11
    Thijs
    0

    Custom Tree deprecated

     

    Hi

    I'm trying to create a custom tree in Umbraco. I'm following the tutorial vids of Tim Gheyssens. In the video where he creates the class for the node I'm stuck. He uses this method to render his tree.

    public override void Render(ref XmlTree){}

    When I try to use this method I get:

    public override void Render(ref System.Xml.XmlDocument Tree){}

    Where I have 2 problems. First the paramater is a different type as the function Tim uses. When I change the parameter to the type Tim uses, my tree doesn't render. Second problem is that the info on the method says that it's deprecated. Which method am I supposed to use instead?

    I'm using Umbraco 4.7.0 If it would matter.

     

    Thanks anyway

    Thijs

     

  • Thijs 97 posts 117 karma points
    Oct 26, 2011 @ 15:00
    Thijs
    0

    sorry to bump this but I'm quite stuck ..

  • Thijs 97 posts 117 karma points
    Oct 27, 2011 @ 11:30
    Thijs
    0

    I got it working, stupid mistake accually.. My loadClass was in a subdirectory so I needed to write in the database, in the treeHandler column: "Tree.loadClass" instead of just "loadClass". Stupid mistake :) For the record, the public override void Render(ref XmlTree) works. Hopefully this helps people in the future :)

    Thijs

Please Sign in or register to post replies

Write your reply to:

Draft