|
|
Rank: Enthusiast
Joined: 1/25/2007 Posts: 28
|
Hi, I would like to add the ability for visitors to add comments to each page of my site. I'm not using the blog package (should I?). I simply would like a link (like "Add your comment") at the bottom of each page where the visitor can post additional thoughts about the content they're looking at on that particular page. I've read about the AutoForm package - maybe I need to use this? I also found this post which was somewhat helpful: http://forum.umbraco.org/extending-umbraco/sitewide-commentsI'm wondering if anyone here knows the best way of doing this. This umbraco implementation is within an secure account environment on ASP.NET so I'm thinking that I should be able to grab the username based on how the visitor is logged in. So really I'm just looking for a simple form that could become a thread of comments on each page. Any ideas? Thanks in advance, Sean
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,076 Location: Charleston, West Virginia, United States
|
The simple way is with autoform. Create a comment document type with the fields you want. Create a macro to display your comments for the current page. Add the AutoForm macro and comment display macro to your page template. If you run into problems, let us know.
• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,076 Location: Charleston, West Virginia, United States
|
You could also write a user control that inserts the document in manually. This way, you could pick up the security credentials that you mention. Currently, the autoform does not pick up these details. (hmm- another idea for AutoForm Plus)
• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
|
|
Rank: Enthusiast
Joined: 1/25/2007 Posts: 28
|
Hi Casey,
I think I do need some more help with this. I've imported the Utilities package so I now have the AutoForm control loaded in umbraco. I've also created a new document type (called UserComments) and added a bunch of fields like name, email, comment field, etc.
Now I'm not sure about the next step because I'm not sure exactly what the AutoForm does. I can't find any specific documentation about how it helps out. I've looked at the AutoForm macro and see all the parameters. But I'm not sure where to go from here.
What would you advise?
Thanks for your help,
Sean
|
|
Rank: Enthusiast
Joined: 12/29/2006 Posts: 17
|
You should take a look at the galery screencast. It shows how to use the AutoForm. You can find the screencast here: http://rtk-cv.dk/1050.aspx/rasmus
|
|
 Rank: Administration
Joined: 7/25/2006 Posts: 425 Location: vipperoed, denmark
|
Sean wrote:Hi, I would like to add the ability for visitors to add comments to each page of my site. I'm not using the blog package (should I?). I simply would like a link (like "Add your comment") at the bottom of each page where the visitor can post additional thoughts about the content they're looking at on that particular page. I've read about the AutoForm package - maybe I need to use this? I also found this post which was somewhat helpful: http://forum.umbraco.org/extending-umbraco/sitewide-commentsI'm wondering if anyone here knows the best way of doing this. This umbraco implementation is within an secure account environment on ASP.NET so I'm thinking that I should be able to grab the username based on how the visitor is logged in. So really I'm just looking for a simple form that could become a thread of comments on each page. Any ideas? Thanks in advance, Sean You might take a look at the forum Package I released a couple of days ago. When installed it let's you create threads under an ordinary textpage. You'll find the package at http://www.jesper.com and it's demo at http://temp.jesper.comKeep in mind that this is a set of forum building blocks that you can take apart and put together as you like. And it's early beta - so try it out on some dev system. Kindly, Jesper webbureau jesper.com doing webdesign / development / umbraco implementations / 2007&2008 MVP / umbraco certified
|
|
Rank: Enthusiast
Joined: 1/25/2007 Posts: 28
|
Thanks Jesper! I'll take a look. A couple other possibilities I found are: JS-Kit and Yak. But JS-Kit, although quite customizable, does not offer a way to host the code yourself. So I'd have to rely on this site to continually host my system's comments. And I like the Yak option, but I'm running into problems using Yak's dll with an umbraco macro. Does anyone have experience using custom .NET controls with umbraco? I read that "If you’re using assemblies the assembly should be the name of your dll (without the dll-extension) and the type should be the full name including namespace." But I keep getting this message when I try to browse properties: Type 'Sloppycode.Yak.WebControls.dll' is null. Anyone have success with custom controls? I'm really hoping to use Yak, or something like it, because i'm looking for a simple comment form to sit on each page of my umbraco site that someone can enter their name/email/comment and it'll be displayed on that particular umbraco page. I'd like to avoid any user registration because the user is already logged into a secure site to view the umbraco pages. So I hope to tie in their username with the post. Thanks, Sean
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,076 Location: Charleston, West Virginia, United States
|
Hi Sean, Sorry that I did not reply quickly, as I have been overly busy.. I will see if I can type up some steps on how to implement the control. I should also be releasing a new AutoForm control as soon as I can kill some of the bugs that are showing up currently with some of the datatypes. I also want to implement a couple of the new features that others have requested. I have to do some documentation for umbraco at work, so I should find some time to build a tutorial on autoform.
• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
|
|
Rank: Enthusiast
Joined: 1/25/2007 Posts: 28
|
Hi Casey,
That would be very helpful. Thank you!
|
|
|
Guest |