Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

get content from ContentArea's first item's property

$
0
0

I have a listing page that pulls info from its child pages.  Each child page has a property called 'Images' that is a ContentArea of blocks - with each block containing an 'Image' property. On the listing page, for each child page listed, I want to get the first block's Image property's src path. How would I do that? This is how I'm pulling in each child page...

@foreach (ReoListingPage listing in Model.Locations.Skip(Model.StartRowIndex).Take(Model.Count))
        {}

I hope that makes sense what I'm asking. Thank you!


Viewing all articles
Browse latest Browse all 9076

Trending Articles