Copied to clipboard

Flag this post as spam?

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


  • Sean Thompson 14 posts 34 karma points
    May 04, 2010 @ 21:07
    Sean Thompson
    0

    Using XLT with Upload function in page content

    This may seem like an easy/fundamental question, but I'm new to umbraco and XSLT and Macros, so please humor me here :)

    I am utilizing a Jquery slideshow and want to make it easy for Content Editors to update the images. So I've set up a tab on my Document type as an uploader and want that to be able to update the images displayed (there will be three)

    How do I set and XSLT/Macro so that when the Editor uses the upload property it will update this, what's the connection?

     

    Thanks for your help.

  • Chris Dunn 210 posts 401 karma points
    May 04, 2010 @ 21:16
    Chris Dunn
    0

    Sean,

    Here's the syntax to return the url for a media property:

     

    <xsl:value-of select="umbraco.library:GetMedia($currentPage/data[@alias='propertyname'], 0)/data [@alias = 'umbracoFile']"/>

      You can place this in a link or image tag (depending on how you query functions).  Just replace 'propertyname' with the name of your property.  repeat three times for all three images.

    -Chris

     

     

  • Sean Thompson 14 posts 34 karma points
    May 04, 2010 @ 21:20
    Sean Thompson
    0

    Thanks Chris,

    Yeah I was wondering what the connection was for connecting the Macro to the Document Type property. I got it to work! Thanks!

     

    Sean

  • 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