Copied to clipboard

Flag this post as spam?

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


  • Stig Kulvedrøsten 48 posts 69 karma points
    Nov 04, 2010 @ 12:24
    Stig Kulvedrøsten
    0

    select property from current() in loop

    <xsl:for-each select="$currentPage/* [@isDoc and string(umbracoNaviHide) = '1']">
            <div class="article">
              <h3>
                <a href="{umbraco.library:NiceUrl(@id)}">
                  <xsl:value-of select="@nodeName"/>
                </a>          
              </h3>
       <xsl:value-of select="current()/description" />
          </div>
          </xsl:for-each>

    This is obvious the wrong syntax for getting the description property from the current page in the loop. Can someone pls tell me what I'm doing wrong? :)

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Nov 04, 2010 @ 12:45
    Tom Fulton
    0

    Actually I think that should work.  Otherwise, inside the loop you can use

    <xsl:value-of select="./description"/>

    or

    <xsl:value-of select="description" />
  • 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