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

Get Local MediaData

$
0
0

I'm new to EPiServer and I am trying to get all the MediaData from a local folder of a page that is not the root. I have tried to get it with the following code but I get zero back. I am doing something wrong because I have a file in my currentPage? Any ideas?

contentRepository.GetChildren<MediaData>(CurrentPage.ContentLink).ToList()

Viewing all articles
Browse latest Browse all 9076

Trending Articles