[Radiant] Pondering comments and logins
Al Evans
anejr at alevans.com
Sat Jul 8 12:29:45 CDT 2006
I've been playing with Radiant for a couple of days -- actually, I
stared cross-eyed at it for a day and a half, and finally understood it
well enough to do things with it for half a day:-)
I want to start off by using it as a blog, but I need to add the ability
for readers to add comments. It was easy enough to display comments
added as children of a main page by adding a few lines to the layout in
the "<r:if_content part="extended">" section:
<r:children:each>
<p>
<r:link /> <span class="info">-- Posted by <r:author /> on <r:date
format="%b %d, %Y" /></span>
</p>
<div class="comment">
<r:content />
</div>
</r:children:each>
It looks fairly easy to add an "Accepts Comments" behavior following the
general design of Oliver Baltzer's Search behavior. This would provide
an "Add Comment" button and associated text field, maybe using AJAX. It
looks like pages aren't meant to be created except by a logged-in user,
and this might be a problem. I'd like to be able to allow someone to
post a comment without making them a full-fledged user. I don't
understand the permissions system very well yet, though.
But that brings me to my main point. The login system seems thoroughly
embedded in the structure of the application. However, I'd really prefer
to use OpenID http://openid.net or my own OpenProfile extension of
OpenID http://openprofile.net in place of some or all of it. (I think
OpenID provides about as much authentication as you can get in a web
app, and it's nice for the users.)
So I thought I'd ask more experienced people about these issues here
before I started slicing and dicing. Is there a better approach to
allowing comments to be posted? Is there a non-violent way to swapping
out the login/authentication system?
--Al Evans
--
Posted via http://www.ruby-forum.com/.
More information about the Radiant
mailing list