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
How do I loop through properties of a node ?
This is my code, and right now I add name, url and date manually.
I've tried to do a nested loop but it fails.
foreach (var item in events) { items.Add( new { name = item.Name, url = item.Url, date = umbraco.library.FormatDateTime(item.GetPropertyValue("eventDate").ToString(), "yyyy-MM-ddTHH:mm") } ); }
Any ideas ?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Looping through page properties
How do I loop through properties of a node ?
This is my code, and right now I add name, url and date manually.
I've tried to do a nested loop but it fails.
Any ideas ?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion