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
Hi, I'm using Media Picker as a Marco's Parameter.
and I want to print out image after i choose from Marco in RTE .
@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage @{ imagePosition = Model.GetParameterValue<string>("imagePosition","full-width"); } <li>@imagePosition </li> <li>@Model.MacroParameters["image"]</li>
but the image has odd url as: " umb://media/e72e191adc2a4593ae9449c7fda176ad "
So how can i get image from PartialViewMacroPage.
Thanks
I was able to retrieve an image with
var media = Umbraco.Media(Model.MacroParameters["image"]).Url(); <img src="@media" />
Is this what you were after?
It worked perfectly.
Thank you
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get image from Partial View Macro Files
Hi, I'm using Media Picker as a Marco's Parameter.
and I want to print out image after i choose from Marco in RTE .
but the image has odd url as: " umb://media/e72e191adc2a4593ae9449c7fda176ad "
So how can i get image from PartialViewMacroPage.
Thanks
I was able to retrieve an image with
Is this what you were after?
It worked perfectly.
Thank you
is working on a reply...