No Dice on Comments
I tried Dave's suggestion for comments, but no dice. Here's what I have:
#set( $comments = $entry.comments )
<comments>
#foreach( $comment in $comments )
<comment id="$comment.id">
<author>$comment.name</author>
<email />
<url />
<timestamp>$comment.postTime</timestamp>
<body>
$comment.content
</body>
</comment>
#end
</comments>
It looks like this Velocity template expects to be a part of something great that exposes the $entry variable. Is it possible to simply pass in an entryid and have the XML generated for that. That's what I really want.
BTW, isn't it lovely how it tries to process the template above? Doesn't seem to for Dave - oh well.


Posted by Lance on April 18, 2003 at 10:24 PM MDT #
Posted by Dave Johnson on April 19, 2003 at 03:27 AM MDT #