Copied to clipboard

Flag this post as spam?

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


  • Lee M. Childress 16 posts 96 karma points
    Jul 01, 2024 @ 18:38
    Lee M. Childress
    0

    Image URL derived from Macro Parameter

    I promise I have checked the various threads and every solution doesn't work for me.

    I have a Partial View With Macro. That macro has an media picker to select an image. For the life of me I cannot get the url to work.

    Code:

    var image = Model.MacroParameters["macroBioPhotograph"] as IPublishedContent; var imageUrl = image.Url();

    What am I doing wrong?

Please Sign in or register to post replies

Write your reply to:

Draft