Am I missing something... How do I pull back the latest few comments? I can't see physical nodes being created so can't do my normal approach... Can't find any examples either.
(P.S. Everything is working fine, form on a document, comments being posted, comments being pulled back... I just want a 'latest comment' macro for the home page)
Get latest comments
Hi all,
Am I missing something... How do I pull back the latest few comments? I can't see physical nodes being created so can't do my normal approach... Can't find any examples either.
(P.S. Everything is working fine, form on a document, comments being posted, comments being pulled back... I just want a 'latest comment' macro for the home page)
Cheers,
Done. Here's the basics (will return all comments)
Some chars get messed up there.
Hi Paul,
thanks for posting that. I too am interested in implementing such a macro on the hompage and that will certainly help me out.
Eddy
So. How create link to comment page?
Inside your for-each you need:
<a href="{umbraco.library:NiceUrl(@nodeid)}#comment-{current()/@mainid}">
<xsl:value-of select="umbraco.library:GetXmlNodeById(@nodeid)/@nodeName"/>
</a>
Is it possible to retrieve, in XSLT, Gravatar Image too?
this should be added inside the for-each block
Sorting by date
<xsl:sort select="umbraco.library:FormatDateTime(@created, 'yyyy/MM/dd')" order="descending" />
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.