Friday April 18, 2003
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 in Roller
at Apr 18 2003, 02:43:21 PM MDT
2 Comments
Search This Site
Recent Entries
- Secure JSON Services with Play Scala and SecureSocial
- My What's New in Spring 3.1 Presentation
- Twitter's Open Source Summit: Bootstrap 2.0 Edition
- Refreshing AppFuse's UI with Twitter Bootstrap
- 2011 - A Year in Review
- Upgrading AppFuse to Spring Security 3.1 and Spring 3.1
- What have I been working on at Taleo?
- Our Engaging Trip to Paris and Antwerp
- My HTML5 with Play Scala, CoffeeScript and Jade Presentation from Devoxx 2011
- Deploying Java and Play Framework Apps to the Cloud with James Ward
Posted by Lance on April 18, 2003 at 04:24 PM MDT #
Posted by Dave Johnson on April 18, 2003 at 09:27 PM MDT #