Am stuck and my drain just stoped working here. I have a folder with some Departement Node Listed where again i have a list of activities under those dept.
I kind of stuck here where i need to list those in a ul list. Here is how my content looks like
-- Folder (Department) --- Departement 1 ---- Activities 1 ----- Sub Act ---- Activities 2 ----- Sub Act 1 ----- Sub Act 2 -- Department 2 --- Activities 1 --- Activities 2
On your last loop, not sure why you're using AncestorOrSelf - why not just .Children to get the Children of "content" (which should be the activities node?)
foreach (dynamic act in content.Children.Where("Visible"))
Though I guess yours should work anyway. What are you getting so far?
Listing Parent and Child of Child
Hi guys,
Am stuck and my drain just stoped working here. I have a folder with some Departement Node Listed where again i have a list of activities under those dept.
I kind of stuck here where i need to list those in a ul list. Here is how my content looks like
The result of this should be something like
So far here is my code and i got stuck on how to loop the sub content to display subact1.aspx etc
Hi Fuji,
On your last loop, not sure why you're using AncestorOrSelf - why not just .Children to get the Children of "content" (which should be the activities node?)
Though I guess yours should work anyway. What are you getting so far?
-Tom
Hi Tom,
I finally got it working making use of Descendants instead.
//fuji
is working on a reply...