Well the Node and DynamicNode class are different for each node off course. They contain the same default properties, but the values are different. You can have a look at how your data is stored in App_Data/umbraco.config. That's how most data can also be used with the DynamicNode for example node.bodyText.
How do I get URL out of a Children Node
I have made this C# code :
umbraco.presentation.nodeFactory.Node node = new umbraco.presentation.nodeFactory.Node(2930);
umbraco.presentation.nodeFactory.Nodes childrenNodes = node.Children;
Repeater1.DataSource = childrenNodes;
Repeater1.DataBind();
Show it with this code:
<ItemTemplate><li><a href="<%# Eval("NiceUrl") %>"> <%# Eval("Name") %> </a>
</li></ItemTemplate>
My problem is that I get the NiceUrl of the current pages not from the childrenNodes..
How do I get the URL for the Children node ??
You could try umbraco.library.NiceUrl(id) in your frontend code. Maybe this wiki can also help: http://our.umbraco.org/wiki/reference/code-snippets/databind-node-children
Jeroen
Shell it look like this ??
<ItemTemplate><li><a href="<%# Eval(umbraco.library.NiceUrl("id")) %>"> <%# Eval("Name") %> </a>
</li></ItemTemplate>
this I tried with out any look !!
also this
<ItemTemplate><li><a href="<%# Eval("umbraco.library.NiceUrl(id)") %>"> <%# Eval("Name") %> </a>
</li></ItemTemplate>
without any look..
Hmm I'm no expert at using Eval. Try this:
Jeroen
SUPER !! this works perfect... thx a lot...
Can I ask you another question ?? Do you know where I can se the format of ex. Node or Children ?
Sorry I don't understand your question. What do you want to do with the Node or Children?
Jeroen
I see if I can explain it a bit bether ;-)
Sometimes it could be nice if there was some documentation that explain what values I'm able to find in a Node class or in a children class..
I can offcouse see it in my VS ... but do you know if there exists a pages on the Umbraco site that explain this ??
/arno
Well the Node and DynamicNode class are different for each node off course. They contain the same default properties, but the values are different. You can have a look at how your data is stored in App_Data/umbraco.config. That's how most data can also be used with the DynamicNode for example node.bodyText.
Jeroen
is working on a reply...