[Radiant] Comments and Attachments

John W. Long ng at johnwlong.com
Mon Jul 10 13:14:39 CDT 2006


Scott Walter wrote:
> Attachments:  First of all do we need attachments?   What if we had asset tab as a top navigation item in the admin console?  Basically the "Asset Manager" would be a tree hierarchy of all the assets for the website.  The assets would be stored on the file system with some metadata stored in the database.  Then radiant tags would be used to either display links to the assets or to include the assets inline.  With this approach we may not need to actually associate attachments with pages.  Once an asset has been uploaded, it would simply require a radiant tag in a page part to display the asset.

I'm pretty keen on the idea of attachments instead of regular asset 
management. Matt McCray and Xavier had agreed to work on this, but I'm 
not sure what the status is. I'd suggest that your team up with them, 
or, if you prefer, work on an asset manager plugin. There seems to be a 
great desire for something of this nature and perhaps it could be a stop 
gap measure until attachments are fully implemented.

> Maybe people would like attachments for pages.  One reason I can think of is for work flow processes.  If someone is creating a page in which they want to add an image, instead of going to the assets tab it would be nice to add the image during the page creation process.  

Workflow is a big part of the reason I like attachments.

> Comments: Comments fall into three areas:
> 
> 1.  Infrastructure--The storage of comments.  Probably a table(s) right off the pages table.  

Right. They should be a full fledge model object.

> 2.  Presentation--Radiant tags to draw the comment form as well as display comments.  I would not make it a behavior, which in my opinion should be for "one-off" situations.  Since most pages will have comments in a blog you wouldn't want every page to have a "comments" behavior.  Instead there can be core Radiant tags to render comments.  

Agreed.

> 3.  Admin--Not needed in the first cut of comments.  Probably a plugin to the admin console to admin comments.

Good idea. Though I suspect we will need some SPAM controls fairly quickly.

Bruce Williams (http://codefluency.com) wanted to work on the comments 
system as well. I have high hopes that it can be implemented as a 
plugin. Perhaps you could collaborate with him?

--
John Long
http://wiseheartdesign.com



More information about the Radiant mailing list