20030418 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

Comments:

Did you put that in your Comments macro (the same way Dave implemented the in-page comments)? Or in the _day template? You might want to wait until you've upgraded to full 0.9.7 before attempting this....

Posted by Lance on April 18, 2003 at 04:24 PM MDT #

I made some corrections to my original post and I tested it out on my site. Works great now with Roller 0.9.7 final.<p />Also, Roller 0.9.7 no longer tries to evaluate Velocity expressions in your weblog posts unless you use the #evaluateString($entry.text) in your day template (I'm assuming you have converted over to the new VelociMacros).

Posted by Dave Johnson on April 18, 2003 at 09:27 PM MDT #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is the Lead UI Architect at LinkedIn. The opinions on this site are mine, not my employers.
« November 2008
SunMonTueWedThuFriSat
      
1
2
3
6
7
8
9
10
11
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
      
Today

Recent Entries

Tag Cloud