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
For some reason I'm getting the error "'umbraco.MacroEngines.DynamicMedia' does not contain a definition for 'umbracoFile'"
from the following code
@inherits umbraco.MacroEngines.DynamicNodeContext @foreach (dynamic mediaItem in @Model.Media("videoFolder").Children) { @mediaItem.umbracoFile }
I definitly have umbracoFile as a property of the media.
You don't need the inherit. This should work for you:
@foreach (dynamic mediaItem in Model.MediaById(Model.videoFolder).Children){ @mediaItem.umbracoFile }
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
'umbraco.MacroEngines.DynamicMedia' does not contain a definition for 'umbracoFile'
For some reason I'm getting the error "'umbraco.MacroEngines.DynamicMedia' does not contain a definition for 'umbracoFile'"
from the following code
I definitly have umbracoFile as a property of the media.
You don't need the inherit. This should work for you:
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.