Copied to clipboard

Flag this post as spam?

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


  • Diego Melgarejo 4 posts 24 karma points
    Sep 03, 2009 @ 20:45
    Diego Melgarejo
    0

    Get the list of pages containing a link to specific nodeID

    I have an event handler to the media section.

    I need perform some things on every page that contains links to this media node id.

    How do I get the document list?

  • Chris Koiak 700 posts 2626 karma points
    Sep 03, 2009 @ 20:57
    Chris Koiak
    0

    assuming that all the links to this document are via the same property alias, e.g MainImage, then try

    <xsl:variable name="imageId" select="12345"/>
    <xsl:for-each select="$currentPage/ancestor-or-self::node//node[data[@alias='MainImage']=$imageId]">
    <xsl:value-of select="concat(@id, ' - ', @nodeName)"/>
    </xsl:for-each>
Please Sign in or register to post replies

Write your reply to:

Draft