Yep, was just going to suggest that as a workaround :)
I think there might be a bug. I would think this would work but it returns nothing:
var nodes = DynamicModel.Children.Where("Template == @0", "Textpage");
I did some testing and couldn't get it working and also found some other bugs, it seems when you do a .Where you then lose the .Template on your nodes. Going to test further and report an issue.
Retrieve templateid or templatename from Node.
Hi,
I have search for how to retrieve templateid or templatename from current node. But I cant seem to get it to work.
I want to get all nodes that have a template assigned (for a navigation menu).
But i cant seem to get it to work... i want to achieve something like below.
I guess this is simple and that i have missed something essential...
Ideas and examples anyone?
Hi,
I believe Template is stored as an integer and nodes without templates have a value of 0. So try this instead:
HTH,
Tom
Nope, that doesnt work either.
I get no nodes on that one. =(
Is this v4 or v5? Seems to work for me on v4, are you sure your root variable is right?
-Tom
V5, sorry...
Hi,
Yep, was just going to suggest that as a workaround :)
I think there might be a bug. I would think this would work but it returns nothing:
I did some testing and couldn't get it working and also found some other bugs, it seems when you do a .Where you then lose the .Template on your nodes. Going to test further and report an issue.
-Tom
Ok, thanks alot.
I have quite some time on this one, I thought I was missing something obvious.
is working on a reply...