I am using SharePoint 2007 + Windows Server 2008 with SharePoint 2007's publishing portal template. I have created some pages (rich text with picture), and I am wondering how to allow people to add comments to web pages (showed at bottom of the page), just like we can add comments to blog page?

thanks in advance, George


4 Answers 4

  • option 1) use a blog site definition which allows people to add comments to a blog post
  • option 2) develop custom control (requires development skills) to facilitate this functionality
  • option 3) check if there are any 3rd party vendors offering this as a product
  • "use a blog site definition which allows people to add comments to a blog post" -- I have already using publishing portal template to create the site, how to use your blog site template based on my existing publishing portal site?
    – George2
    Commented Nov 13, 2009 at 14:23

I would try a custom list that is viewed on the page using the page filter to make sure only those comments related to the page are viewable. The hard part is going to be putting the form on the page to allow them to comment. I know that you can use jQuery to set the value of a field in the form, so that you can have it default to the value needed to ensure the filter works properly, see this article for reference: http://www.endusersharepoint.com/2009/06/15/quick-and-easy-use-jquery-to-set-a-text-field%e2%80%99s-value-on-a-sharepoint-form/


  • Thanks Lori, "the page filter to make sure only those comments related to the page are viewable" -- is it possible to create a list on each page which needs comments?
    – George2
    Commented Nov 13, 2009 at 14:35
  • 1
    I like the idea, but I wonder what the permissions configuration on that list would look like Commented Nov 13, 2009 at 15:04
  • I want to make all non-anonymous users to be able to add comments, is that feasible from technical point of view?
    – George2
    Commented Nov 13, 2009 at 15:11
  • 1
    Yes, you could create a list for each page and display only that list. That would save you from having to use jQuery for the field population. As far as the formatting, you could do a couple of different things. You could use jQuery to change the formatting of the list, or use SPD to make a dataview of the list and format it the way you want.
    – Lori
    Commented Nov 13, 2009 at 16:23
  • 1
    jQuery in Action - manning.com/bibeault Commented Nov 13, 2009 at 20:13

Option 4) Use SP Designer

I've been able to do this before with just SP Designer. There are two things to do here. One, displaying comments that have been added and two, providing a box for people to add comments.

This blog post here has helped me in the past add comments to the bottom of a page. Just create a list with a lookup column and follow the directions in the blog post to display all comments for the item you are currently viewing.

Here's some of what I wrote on an internal blog post explaining my experiences in creating the ability to add comments at the bottom of a page which I think could be helpful. In this case it was a list of ideas.

"Having the ability to add a comment at the bottom of the page wasn't that bad. I used SharePoint Designer and inserted a List Form webpart. I was quickly adding comments. The problem was I had to select which idea I was adding a comment for. I found this article which helped me add some javascript to automatically select the idea I was currently viewing. Then I could hide that row of data from the form and people won't be able to change it or see that it's an option.

I still needed it to come back to the page I was on. After submitting the comment it was wanting to go back to the full list of ideas. I found this forum post which worked exactly like I needed it to.

The editing of comments ended up turning into its own animal. First of all when I went to edit a comment, it was displaying the drop down box where I could assign the comment to a different idea. I didn't want this to be shown. But I wanted things to be easy and use the default sharepoint control and not go down the route of creating a new list form webpart like I did for the add comment. I found this post which when added to the page, hid that row of data with ease.

I also had the issue when editing comments that it wouldn't take me back to the previous page I was on. It kept sending me to the main list of ideas. If you add an onclick event like this: onclick="GoToLink(this); return false;" to your anchor tags, then SharePoint will add a source querystring parameter to the url and the page will return to that source parameter. I ended up copying some of the gotolink code from the core.js onto the bottom of my page so that it would force the source to be the current url. Once that was done, I was returning nicely to the page I was previous at."


You can using commenting service that provided complete path, support and prevent from spammers. Such as Disqus.

  • 1
    Welcome to SharePoint StackExchange. While your post may answer the Question it doesn't go into enough depth to be easily understood, please consider revising your answer so that it may or may not be accepted in its fullest.
    – Hugh Wood
    Commented Nov 26, 2012 at 11:22
  • Yes, exactly as Hugh says. See our FAQ for more information on how to answer.
    – SPDoctor
    Commented Nov 26, 2012 at 12:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.