Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nagarjun 39 posts 71 karma points
    Aug 30, 2016 @ 13:59
    Nagarjun
    0

    umbracoFile as parameter vs property

    Hi,

    We have 2 instances of same version (umbraco v6.2.1) installed.

    Is there any difference between the following two lines.

    1. Model.Media("PropertyName").umbracoFile

    2.Model.Media("PropertyName","umbracoFile")

    I've noticed that only second line is working in both versions. For the first line I'm getting an error as

    Cannot implicitly convert type 'umbraco.MacroEngines.DynamicNull' to 'umbraco.MacroEngines.DynamicNode'

Please Sign in or register to post replies

Write your reply to:

Draft