Hi
I am trying to get at list of active pages that are children of a given parentpage using the API
Guess what i have to use is this https://doc.dynamicweb.com/api-docs#article=91fd0116-1d77-a43b-83e0-ed140ebb478b
So far i have tried a lot of things, but canĀ“t get it to work. Can anyone guide me in the right direction?
What I have so far is:
@{ string parentpagestring=@GetString("DwPageID_1"); int parentpage=Int32.Parse(@parentpagestring); IEnumerable<Page> mytree=Dynamicweb.Content.IPageService.GetPagesByParentID(@parentpage); }
But this just gives an error
have also tried
@{ string parentpagestring=@GetString("DwPageID_1"); int parentpage=Int32.Parse(@parentpagestring); var mytree=Dynamicweb.Content.IPageService.GetPagesByParentID(@parentpage); }
Anyone who can guide me in to getting some sort of "thingy" that I can loop through the pages under a given ParentPageID? (Sorry for my terminology)?
/Hans