|
From: Andrew H. <hu...@ll...> - 2003-07-22 16:05:37
|
Hello,
I'm trying to get the comments package to work with the news package, so
that I can have comments on the news stories on my OI site. At the bottom
of the news::news_detail template I've added the following:
[% OI.comp( 'show_comment_summary', object = news ) %]
[% PROCESS comments::comment_form_page( object = news ) %]
That shows the comment form correctly, but it doesn't allow me to post
comments. The error I get is "Insufficient data supplied to fetch comments
by object." It doesn't appear to be getting the object information that it
needs. When I look at the post comments form in html, the hidden values at
the bottom are:
<input type="hidden" name="class" value="">
<input type="hidden" name="object_id" value="">
Which I would assume is a problem :) How am I calling the above template
wrong?
Related to this, I've noticed (or I think I have ;) that lots of the
templates are cached, so that when I make a change to the templates,
sometimes I won't see it for a few requests. I guess that's because the
template it cached within each child request? Is there any way around
this? I've thought about changing template_info->{cache_size} to 0, but
was worried that that would make performance too slow to stand while
messing around. Any thoughts? How do other people handle this?
Thanks for the input.
-Andrew
|