[Radiant] Comments behaviors released (Sean Cribbs)
Maurizio Balestrieri
maurizio at gmail.com
Sat Sep 2 07:47:17 CDT 2006
Hello Nicholas, wouldn't you mind to share the plug-in code? Although
I've installed radiant as a gem, when you update it all extra
directories and files are deleted, so I think the plug-in (which
should be instance-specific) ahould work better for me too. Thank you.
--M
On 9/2/06, Nicholas Mulder [Mulder Consulting] <nick at mulderconsulting.ca> wrote:
> Sean,
>
> Behavior looks good! I quickly put it into a plugin since i dont have
> an expanded radiant install going at the moment. It seems to be having
> a problem with
>
> comments.parts.create! :name => "config", :content =>
> (@page.part("config").content || "")
>
> line 29 commentable_behavior.rb nil.content call.
>
> Seems like if you dont define a config part it errors out. try :content
> => (@page.part("config") ? @page.part("config").content : "") instead.
> or something similar. getting the part once might be a better idea.
>
> also with that little fix in place getting a "Status must be a number"
>
> |comments_util.rb:23:in `create_comment_in'
>
> Might want to call .to_i on line 25 same file -- :status_id => page_config["status"].to_i || Status[:draft].to_i
>
> that seemed to do the trick for me. Wicked job so easy so slick.
>
> Are these comments going to end up in their own table? or stay in the page/page_parts tables?
> |
>
>
> Nicholas Mulder
>
> Mulder Consulting
> 905 658 5641
> nick at mulderconsulting.ca <mailto:nick at mulderconsulting.ca>
>
> _______________________________________________
> Radiant mailing list
> Radiant at lists.radiantcms.org
> http://lists.radiantcms.org/mailman/listinfo/radiant
>
More information about the Radiant
mailing list