On Jan 10, 2008 4:35 PM, Derek Collins <[EMAIL PROTECTED]> wrote: > Is it possible to customize the comment and/or comment-form code? > > I would like to customize the HTML that is output by: > > #showWeblogEntryComments($model.weblogEntry) > > and by this: > > #showWeblogEntryCommentForm($model.weblogEntry)
Those are Velocity Macros that are provided by the Roller WEB-INF/velocity/weblog.vm file. If you want to customize the comment HTML, I think you've got two choices. One is to modify those macros to do what you want by editing the file weblog.vm. The benefit of this approach is that all existing Roller themes that you use will have your new look, because they all use those macros. Oh, and make sure you save this file before you upgrade Rolller, you'll have to merge your new macros back in when in upgrade. The other choice is to create some new comment macros with new different names.Put those macros in a file called WEB-INF/velocity/roller-custom.vm and then you can use them in Roller.The benefit of this option is that you can have original Roller style comments in some blogs and your new style comments where you want them. It will also eliminate the merge on upgrade problem. Hope that helps, - Dave
