Copied to clipboard

Flag this post as spam?

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


  • Daniel Horn 319 posts 344 karma points
    Dec 21, 2010 @ 13:56
    Daniel Horn
    0

    Currentpage, child etc.

    Hi

    Here's an easy one.

    <xsl:value-of select="umbraco.library:FormatDateTime($currentPage/@createDate, 'd MMMM, yyyy')"/>

    The above gives me the createDate of the news page, not the news.

    News

    - story1

    - story2

    How do i get the date of the story1 and story2 on the news list?

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Dec 21, 2010 @ 13:59
    Tom Fulton
    1

    It should be the same code, but without $currentPage/ and inside your for-each loop, ie:

    <xsl:for-each select="$currentPage/NewsStory [@isDoc]">
    <li>
    <xsl:value-of select="@nodeName"/> - <xsl:value-of select="umbraco.library:FormatDateTime(@createDate, 'd MMMM, yyyy')"/>
    </li>
    </xsl:for-each>
  • Daniel Horn 319 posts 344 karma points
    Dec 21, 2010 @ 14:04
    Daniel Horn
    0

    Cheers, i realized it afterwards :) 

  • 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