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 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 :)
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.
When I try to use this method I get:
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
sorry to bump this but I'm quite stuck ..
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
is working on a reply...