Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Radiant Comments
Ruby
branch: master

This branch is 177 commits behind mysmallidea:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
autotest
db/migrate
lib
test
CHANGELOG
MIT-LICENSE
README.rdoc
Rakefile
TODO
comments_extension.rb

README.rdoc

Radiant Comments Extension

Adds blog-like comment functionality to Radiant.

Patches

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.

Dependencies

Usage

Remember to run the migration. This WILL delete any snippets named 'comment', 'comments' and 'comment_form' if these exist.

rake radiant:extensions:comments:migrate

To enable spam protection, you will need to set your Akismet key and url in the Radiant config.

To customize the CSV fields you can add an initializer like this:

Comment.class_eval do
  def export_columns(format = nil)
    %w[approved? author author_email content referrer]
  end
end

In your layout:

<r:snippet name="comments" />

Snippets

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. Check out the 002 migration to see what they default to.

Caveats

  • Relative urls will not work on comment pages if they fail validation, since the page gets re-rendered at a (probably) different level of the hierarchy. Always use absolute urls and you won't have any issues.

Contributors

If you contribute, go ahead and add your name to the list!

Something went wrong with that request. Please try again.