Copied to clipboard

Flag this post as spam?

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


  • RoelAlblas 50 posts 61 karma points
    Oct 20, 2010 @ 18:57
    RoelAlblas
    0

    GPX as media

    Hi,

    I've got the following xslt

    <xsl:if test="$currentPage/data[@alias='gPSPicker'] &gt; 0">
     <xsl:variable name="gpx" select="umbraco.library:GetMedia($currentPage/data[@alias='gPSPicker'], 0)"/>
     <xsl:if test="$gpx &gt; 0">
      <xsl:variable name="url" select="umbraco.library:NiceUrl($gpx/@id)"/>
     <xsl:if test="$url != ''">
      <xsl:variable name="xml" select="umbraco.library:GetXmlDocumentByUrl($url)"/>
     </xsl:if>
     </xsl:if>
    </xsl:if>

    It should load a xml file that has a stylesheet that renders the inner xml to html.

    The stylesheet is also a xslt in Umbraco and the xml is loaded in the media.

    I do not get content out of the $url and I can get the url filled.

    Please help!

    Roel

     

  • RoelAlblas 50 posts 61 karma points
    Oct 20, 2010 @ 19:08
    RoelAlblas
    0

    http://our.umbraco.org/forum/developers/api-questions/4427-NiceUrl-for-Media-file

    Its not possible to get the id of the media file by niceurl when using mediapicker

Please Sign in or register to post replies

Write your reply to:

Draft