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
Topic author was deleted
Must be missing something obvious here, I can get the umbracoFile fine following the details in
http://umbraco.com/follow-us/blog-archive/2011/2/24/umbraco-47-razor-feature-walkthrough-%E2%80%93-part-2
But can't seem to get to the name
<umbraco:Macro runat="server" language="cshtml"> @{ dynamic media = Model.Media("image"); } @media.umbracoFile @* doesn't work @media.Name *@ </umbraco:Macro>
Any tips on how to get the name?
Hmm, it doesn't work for me either, neither does NodeName or Text. This seems like an oversight, even the sample code for getting a node by Id fails to produce a name:
@Model.NodeById(Model.Image).Name
Of course you could still do it like this:
@using umbraco.cms.businesslogic.media; @{ var media = new Media(Model.Image); } @media.Text
Comment author was deleted
Ok issue logged in codeplex
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Topic author was deleted
Getting Media Name
Must be missing something obvious here, I can get the umbracoFile fine following the details in
http://umbraco.com/follow-us/blog-archive/2011/2/24/umbraco-47-razor-feature-walkthrough-%E2%80%93-part-2
But can't seem to get to the name
Any tips on how to get the name?
Hmm, it doesn't work for me either, neither does NodeName or Text. This seems like an oversight, even the sample code for getting a node by Id fails to produce a name:
Of course you could still do it like this:
Comment author was deleted
Ok issue logged in codeplex
is working on a reply...