Copied to clipboard

Flag this post as spam?

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


  • Ove Andersen 435 posts 1541 karma points c-trib
    Dec 10, 2009 @ 08:17
    Ove Andersen
    1

    Showing @nodeName instead of @id when using Ultimate Picker datatypes.

    Is this possible to implement?

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Dec 10, 2009 @ 22:50
    Stefan Kip
    0

    Good question, got the same problem here...

    It would be great if the source was released so we can all help.

  • trfletch 598 posts 604 karma points
    Jan 25, 2010 @ 13:04
    trfletch
    0

    I need to know this as well, It is a little worrying that there was never a response to this. Is it possible? Also is it possible using XSLT to list other propertie from the node such as a picture maybe?

  • trfletch 598 posts 604 karma points
    Jan 26, 2010 @ 12:41
    trfletch
    0

    Sorry to pester, just wondered if anyone knows the answer to this one because if I cannot use the ultimate picker to display something other than the ID then it is not going to be of any use.

  • trfletch 598 posts 604 karma points
    Jan 26, 2010 @ 13:34
    trfletch
    0

    Shocking as this may seem I have actually managed to write the XSLT myself to make this work and I am able to extract what I want from the ultimate picker, below is what I have used:

    <xsl:template match="/">
    <xsl:variable name="location" select="umbraco.library:GetXmlNodeById($currentPage/data [@alias='location'])" />
    <xsl:variable name="contract" select="umbraco.library:GetXmlNodeById($currentPage/data [@alias='contract'])" />
    <xsl:variable name="recruiter" select="umbraco.library:GetXmlNodeById($currentPage/data [@alias='recruiter'])" />


    <xsl:for-each select="$currentPage">

    <xsl:value-of select="@nodeName"/><br />
    <xsl:value-of select="$location /@nodeName"/><br />
    <xsl:value-of select="$contract /@nodeName"/><br />
    <xsl:value-of select="$recruiter /@nodeName"/><br />

    <img alt="" class="standard-image">
    <xsl:attribute name="src">
    <xsl:value-of select="umbraco.library:GetMedia($recruiter /data [@alias='recruiterlogo'], 'false')/data [@alias='umbracoFile']" />
    </xsl:attribute>
    <xsl:attribute name="width">
    <xsl:value-of select="umbraco.library:GetMedia($recruiter /data [@alias='recruiterlogo'], 'false')/data [@alias='umbracoWidth']" />
    </xsl:attribute>
    <xsl:attribute name="height">
    <xsl:value-of select="umbraco.library:GetMedia($recruiter /data [@alias='recruiterlogo'], 'false')/data [@alias='umbracoHeight']" />
    </xsl:attribute>
    </img>
    <br/>

    <xsl:value-of select="data [@alias = 'salary']"/><br />
    <br />
    <xsl:value-of select="data [@alias = 'jobdescription']" disable-output-escaping="yes"/>

    </xsl:for-each>

    </xsl:template>

     

Please Sign in or register to post replies

Write your reply to:

Draft