public
Description: Radiant Comments
Clone URL: git://github.com/artofmission/radiant-comments.git
Search Repo:
name age message
folder CHANGELOG Wed Jun 11 08:45:24 -0700 2008 Did a bit of cleanup. [ntalbott]
folder MIT-LICENSE Mon May 05 12:13:47 -0700 2008 Importing comments extension to Git [artofmission]
folder README.rdoc Mon Jun 16 07:35:22 -0700 2008 Oh, yeah, me too [artofmission]
folder Rakefile Mon May 05 12:13:47 -0700 2008 Importing comments extension to Git [artofmission]
folder TODO Wed Jun 11 08:45:24 -0700 2008 Did a bit of cleanup. [ntalbott]
folder app/ Mon Jul 14 20:11:36 -0700 2008 Merge branch 'master' of git://github.com/ntalb... [artofmission]
folder comments_extension.rb Tue Jun 24 12:40:29 -0700 2008 Selected comment should show even if it is the ... [ntalbott]
folder db/ Mon Jun 16 09:11:33 -0700 2008 Notify the user about whether their comment has... [jonleighton]
folder lib/ Tue Jun 24 12:40:29 -0700 2008 Selected comment should show even if it is the ... [ntalbott]
folder test/ Fri May 23 08:41:27 -0700 2008 Got the tests passing. [ntalbott]
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

  • Requires Radiant 0.6.7 or greater.
  • Requires will_paginate Rails plugin (http://github.com/mislav/will_paginate/tree/master)

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.

In your layout:

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

  • Nathaniel Talbott of http://terralien.com/, sponsored by http://ignitesocialmedia.com/.
  • John Croisant
  • Jon Leighton
  • Witter Cheng
  • Keith Bingman
  • Sean Cribbs
  • Ryan Heneise

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