I've got a ContentType "Event" that has a "location" field on it. I used the work context to query for a list of Events on a widget. When I display these in my display view, I need to be able to access the value of that field
(and other fields) and print the information out.
I know I've done this before, but I can't figure it out. I've been looking through ShapeTracing and the debugger but cannot seem to find how to access the fields on my content item.
var eventQuery = _cms.Query(VersionOptions.Published, "Event").List();
() => shapeHelper.Parts_Events(
@foreach(var eventItem in Model.Events)
<div>Event will be held at @eventItem.Fields.Location</div>