@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@using KS.Umbraco7.Calendar.Core
<h3>Events</h3>
<ul>
@foreach (CalendarEvent ce in Calendar.getEvents(DateTime.Now.Date, DateTime.Now.AddDays(80), "event"))
{
<li>
@ce.content.Name
</li>
}
</ul>
I'm trying to display the events on the node "Calendar POC". My assumption was that the module would search for all nodes with the DocType "event", but perhaps I'm mistaken?
Loop not returning events
For some reason I'm not getting any results.
Content Tree:
View:
I'm trying to display the events on the node "Calendar POC". My assumption was that the module would search for all nodes with the DocType "event", but perhaps I'm mistaken?
Figured it out; I was using the DocType name instead of the Property name...
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.