Copied to clipboard

Flag this post as spam?

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


  • Aditya.A 77 posts 96 karma points
    Jul 25, 2013 @ 13:11
    Aditya.A
    0

    Macro to show an image from Media

    Hi Guys n Gals

    I want to do something fairly straightforward but can find no help for it.i need to develop a home page carousel.

    now i want a macro which will pick the images from the a folder in media,and display them in the home page slider.

    need urgently

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Jul 25, 2013 @ 13:42
    Jan Skovgaard
    0

    Hi Aditya

    Maybe this package still works? http://our.umbraco.org/projects/website-utilities/nivoslider-for-umbraco

    /Jan

  • Aditya.A 77 posts 96 karma points
    Jul 25, 2013 @ 14:10
    Aditya.A
    0

    thank u for response..but i dont want to use this

    as per the rewquirements i have to create a macro to fetch the images from the folder in media.and display them on the page.

    we are using the "flexslider" javascript to do the slider effect.

  • Aditya.A 77 posts 96 karma points
    Jul 26, 2013 @ 09:27
    Aditya.A
    0

    Hi Guys n Gals

    I want to do something fairly straightforward but can find no help for it.i need to develop a home page carousel.

    now i want a macro which will pick the images from the a folder in media,and display them in the home page slider.

    as per the rewquirements i have to create a macro to fetch the images from the folder in media.and display them on the page.

    we are using the "flexslider" javascript to do the slider effect.

    need urgently

  • Claushingebjerg 886 posts 2415 karma points
    Aug 16, 2013 @ 14:35
    Claushingebjerg
    0

    <xsl:output method="xml" omit-xml-declaration="yes"/>
    <xsl:param name="currentPage"/> <xsl:template match="/">
    <xsl:variable name="images" select="$currentPage/imagefolder"/>
    <xsl:variable name="mediaItems" select="umbraco.library:GetMedia($images, true())"/>

    <xsl:for-each select="$mediaItems/Image">
    <xsl:variable name="picFile" select="umbracoFile"/>
    <img src="{$picFile}"/>
    </xsl:for-each>

    </xsl:template>
    </xsl:stylesheet>

     

    This should render the images selected from the mediapicker called "imageFolder" on your document type.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies