Hello, I have a node which contain childrens. I want to build a new node which contain just a certain childrens that I"ll choose - how can I do it with a loop? I saw the add statement - how do I use it? Couldn't success with the Where statement (tried but it doesn't work - my condition is if a checkbox match a category name and just cant get the result I like so maybe it will work "Manually" ...)Thanks. Menachem .
No no, Not tryoing to build a new tree - Just try to sort existing node... - I already posted the code here in the forum but didn't get answer...
Here is the problem: In my magazine each node contain a section in the magazine (like gadgets, photography, etc). Now, the problem is with two nodes which contains more than one section - Photography and gadgets in one node. The reason is btw - in order to display them together in the homepage. The problem is in the archive pages where I want to display them in seperate. Somehow it just doesn't work with the "where" statement. I distinguish between the topics with a checkbox - doesn't work. So I thought maybe to just build a new node with the requested childrens and then display them.
How to build a new node from existing one?
Hello, I have a node which contain childrens. I want to build a new node which contain just a certain childrens that I"ll choose - how can I do it with a loop? I saw the add statement - how do I use it? Couldn't success with the Where statement (tried but it doesn't work - my condition is if a checkbox match a category name and just cant get the result I like so maybe it will work "Manually" ...)Thanks. Menachem .
Hi Meni,
Can you please confirm, are you looking to create new nodes in the tree by copying others as the new nodes children?
If you have any code you could post that would be helpful in understanding what you are trying to do.
Thanks,
Jeavon
Hi Jeavon,
No no, Not tryoing to build a new tree - Just try to sort existing node... - I already posted the code here in the forum but didn't get answer...
Here is the problem: In my magazine each node contain a section in the magazine (like gadgets, photography, etc). Now, the problem is with two nodes which contains more than one section - Photography and gadgets in one node. The reason is btw - in order to display them together in the homepage. The problem is in the archive pages where I want to display them in seperate. Somehow it just doesn't work with the "where" statement. I distinguish between the topics with a checkbox - doesn't work. So I thought maybe to just build a new node with the requested childrens and then display them.
This is what I tried till now (W/O success...)
Just thought maybe to de it with Foreach loop that's it. And then inside the loop to pick the selected topic with if statement
Obviously I'm not quite sure what else you are doing and I'm assuming you are using DynamicNode rather than Mvc, but this works and might help?
WoW! work LIKE A MAGIC!!!! Thank you so much !!! :)
So, just want to understand what was wrong with my condition .. ?
and what's the meaning of this:
Where("opliCategory == @0","Gadgets");
Just to learn ...
Thanks :)
Awesome, basically you are mixing typed syntax with dynamic. Mainly when using DynamicNode you will be using dynamic syntax.
To use the condition in the way you orginally had you would need to do something like this using the Typed DynamicNode:
FYI, the documentation for using a .Where filter in DynamicNode is here.
is working on a reply...