Copied to clipboard

Flag this post as spam?

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


  • dominik 711 posts 733 karma points
    Aug 16, 2011 @ 12:48
    dominik
    0

    GetRelatedNodesAsXml problem

    Hello,

    I am using the language dropdown XSLT script.

    This works fine for changing from related document back to the origninal document (where it has been copied from) but in the other way it does not work.

    Heres is my script:

    <xsl:variable name="relatedNode" select="umbraco.library:GetRelatedNodesAsXml($currentPage/@id)" />
    <xsl:for-each select="$relatedNode/relations[relation]">
                      <!-- Check if there is a relation -->
                      <xsl:if test="umbraco.library:NiceUrl($relatedNode/relations/relation/node/@id) != '#'" >            
                         <xsl:attribute name="value"><xsl:value-of select="umbraco.library:NiceUrl($relatedNode/relations/relation/node/@id)" /></xsl:attribute>
                      </xsl:if>
                    </xsl:for-each>
  • Garrett Fisher 341 posts 496 karma points
    Sep 22, 2011 @ 19:59
    Garrett Fisher
    0

    I am having this exact same problem!  Just posted twice on it.  It seems that the original document always has an absolute link instead of a relative one.  Haven't found a way around this.  Did you solve it?\

    //Garrett

  • dominik 711 posts 733 karma points
    Sep 23, 2011 @ 07:47
    dominik
    0

    Hi Garret,

    Try to install the relation package which enables you to see the relation in the content. On my site the problem was that there were two relation for this content. If you install this plugin you can simply delete the wrong relation and than it will work



Please Sign in or register to post replies

Write your reply to:

Draft