Copied to clipboard

Flag this post as spam?

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


  • Steve 472 posts 1216 karma points
    Mar 10, 2014 @ 17:29
    Steve
    0

    Selecting a Single Media Item Using a Macro Property

    I would like to select a single image from within a Media node by refrencing it only with a property within a Macro.

    So the macro would have a field that would be a number, this number would correlate with the order of the media item within the parent Media node. Is this even possible, or would I have to make the property a picker with "currentMedia"?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Mar 10, 2014 @ 18:03
    Jeroen Breuer
    0

    Not really sure I understand. If you use "currentMedia" you can use that to select media and also use that selected media item in your macro. Isn't that what you want?

    Jeroen

  • Steve 472 posts 1216 karma points
    Mar 10, 2014 @ 19:23
    Steve
    0

    It is one way of getting the result. I was curious if it were possible to do it the other way though.

    Also, why would I get an error loading the macro with this:

    var slideFolder = Library.MediaById(Parameter.slideFolder);
    var launchSlide = slideFolder.Children.Take(1);
    <li><a class="startSlide" id="openGallery" href="@launchSlide.umbracoFile" title="Slideshow"><img src="/ImageGen.ashx?image=/media/1013416/slide-controls-overlay.png&width=@width&height=@height" /><img src="/ImageGen.ashx?image=
    @launchSlide.umbracoFile&width=@width&height=@height" /></a></li>
Please Sign in or register to post replies

Write your reply to:

Draft