Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
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>
Cheers, i realized it afterwards :)
is working on a reply...
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.
Continue discussion
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?
It should be the same code, but without $currentPage/ and inside your for-each loop, ie:
Cheers, i realized it afterwards :)
is working on a reply...
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.