Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all,
I want to find the child node of one specifice child node.Below is my node stucture :-->Content
-->Language Checking
-->English
-->Danish
-->DA
-->Home
-->About us (I am here)
-->Contacts
-->EN
-->About us
--------------------------------------------------
Curently, i am on ABOUT US page.
Now, i want for prepare the list of language list that are the child node of Language Checking Node.
I want to prepare it in razor.
Any help would be appreciated.Thanks in advance.
I think the lack of a top level parent node makes this problematic. Ireckon your easiest way is to to hadcode the node id. Not ideal.
Or maybe consider restructuring your content like so:
Then you would use
Model.AncestorOrSelf(1).Children;
(I'd also make dictionary items for the node names - DA etc)
Hi Tony,
I used this : @Model.NodeById(-1).Children
And from root node , i found the what i want.i solved that.Thanks for your help. :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Find all the child node of specific node.
Hi all,
I want to find the child node of one specifice child node.
Below is my node stucture :
-->Content
-->Language Checking
-->English
-->Danish
-->DA
-->Home
-->About us (I am here)
-->Contacts
-->EN
-->Home
-->About us
--------------------------------------------------
Curently, i am on ABOUT US page.
Now, i want for prepare the list of language list that are the child node of Language Checking Node.
I want to prepare it in razor.
Any help would be appreciated.
Thanks in advance.
I think the lack of a top level parent node makes this problematic. Ireckon your easiest way is to to hadcode the node id. Not ideal.
Or maybe consider restructuring your content like so:
Then you would use
(I'd also make dictionary items for the node names - DA etc)
Hi Tony,
I used this : @Model.NodeById(-1).Children
And from root node , i found the what i want.
i solved that.
Thanks for your help. :)
is working on a reply...