0
+= Radiant Comments Extension
0
+This extension is incompatible with the latest version of the Shards extension. Use at your own risk. If you get it working, PLEASE SUBMIT A PATCH!
0
+Adds blog-like comment functionality to Radiant.
0
+This software "works for me", but it may not work for you, depending on your particular environment or setup. Feel free to modify it in any way. If you do make changes that would be useful to others, please send a patch to ryan at artofmission (dot you-know-what), and I will see that it gets applied.
0
+* Requires Radiant 0.6.1 or greater.
0
+* Requires the Shards extension (http://dev.radiantcms.org/svn/radiant/trunk/extensions/shards)
0
+* Requires will_paginate Rails plugin (svn://errtheblog.com/svn/plugins/will_paginate)
0
+Remember to run the migration. This _WILL_ delete any snippets named 'comment', 'comments' and 'comment_form' if these exist.
0
+ rake radiant:extensions:comments:migrate
0
+The Shards extension must be loaded before Comments. To do this, add the following line to config/environment.rb:
0
+ config.extensions = [ :shards, :all ]
0
+To enable spam protection, you will need to add your Akismet key to app/models/comments.rb:
0
+ @akismet = Akismet.new('enter-your-key-here', 'enter-your-domain-here')
0
+ <r:snippet name="comments" />
0
+The snippets "comments", "comment" and "comment_form" are created by the migration. These can be found under snippets, and can be customised after your needs. The snippets are the following:
0
+ <r:snippet name="comment" />
0
+<r:snippet name="comment_form" />
0
+ <span class="number"><r:index />.</span>
0
+ <span class="by_line">
0
+ <r:author_link /> wrote:
0
+=== Snippet: comment_form
0
+<r:if_comments_enabled>
0
+ <h2>Post a Comment</h2>
0
+ <r:author_field class="textbox" />
0
+ <label>E-mail <small>(not shown)</small></label>
0
+ <r:author_email_field class="textbox" />
0
+ <label>Website</label>
0
+ <r:author_url_field class="textbox" />
0
+ <label>Text Filter</label>
0
+ <r:text_filter_field />
0
+ <label>Message</label>
0
+ <r:content_field rows="9" cols="40" />
0
+ <input type="submit" value="Post Comment" />
0
+</r:if_comments_enabled>