Site structure
Version 5.x > Site structure > News with comments View modes: 
User avatar
Member
Member
gaurav.agrawal-octalsoftware - 4/6/2011 7:07:00 AM
   
News with comments
Hi,

How can we show News with comments like blogs?

On the news details page we want to comments section for news.

can you provide us a suitable solution.....

Thanks...

User avatar
Kentico Support
Kentico Support
kentico_radekm - 4/6/2011 8:27:03 AM
   
RE:News with comments
Hello.

You could use Message boards module, which enables site visitors to comment on the content of a particular page. It means you can insert comments on specific document content, on a specific user or a group of users etc. So you can attach it to particular news documents as well.

You can find more info here: http://devnet.kentico.com/docs/devguide/message_boards_overview.htm

Best Regards,
Radek Macalik

User avatar
Member
Member
gaurav.agrawal-octalsoftware - 4/7/2011 12:25:28 AM
   
RE:News with comments
Sorry we can't user message board in my site because our requirement is different from message board provided.

We want news title, news short description, news full description, news image and news attachment file in our news section and on every news we want comments also.

This is my basic requirement. Can you provide me a great solution for this???

Thanks
Gaurav Agrawal

User avatar
Kentico Support
Kentico Support
kentico_radekm - 4/19/2011 2:30:30 AM
   
RE:News with comments
Hello.

I still don´t fully understand why you could not use Message boards on your particular news documents? What is shown on the page (news title, news short description, news full description, news image and news attachment file) depends on transformation and (if needed) additional web part, like Attachment image gallery for example, however Message board web part can be added beneath, so it is independent on news page appearance. Second option, if existing Message boards does not fit your needs, is to develop a custom web part according to this article.

If your scenario is special in some way I don´t understand, please make me some screenshots and send them to support@kentico.com (you can attach some further description as well). Thank you.

Best Regards,
Radek Macalik

User avatar
Member
Member
gaurav.agrawal-octalsoftware - 4/19/2011 4:11:12 AM
   
RE:News with comments
Hello,

Its a good concept but when i was use this message board for news at that time all comments or messages displays on all news. how i can restrict that these messages are related to news1. Suppose there are 2 news News1 & News2 and we are using message board for both of them. I want if user insert a message from news1 page then this message will display only on News1 page, not to show News2 page.

How can to do this.

Thanks
Gaurav

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 4/19/2011 8:38:28 AM
   
RE:News with comments
Hi,

the message board webpart content (list of posts) is connected with the document - it means posts added and displayed on the News1 document will be different from posts on News2 document. This behavior is by default, you do not need to change settings.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
Rodrigo Perez - 7/21/2011 11:38:01 AM
   
RE:News with comments
I am having the exact same problem.
I have all news in a single menu item document eg. /sitetest/news/newsdetail.aspx
and I change the content using tranformations, since my news are stored in a database.
To identify which piece of news I want to display I use ?newsId

The thing is, when adding the message board, the Alias Path it takes to create the Message Board is the document path ignoring the querystring. And all comments are displayed in all pieces of news.

How can I handle this?

Best regards.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 7/22/2011 3:55:36 AM
   
RE:News with comments
Hi,

since my news are stored in a database.


Does it mean that you have a custom table from which you are selecting data? I mean if the news are only stored in some custom/external table or if it is a document (for example cms.news document type which exists in the content tree).

The content of message board web part is connected with a document (news document in the content tree) - it is enough to insert a message board web part to the template used by news documents. If the news are custom table records (do not have document data) the message board web part cannot be used for comments because the comments cannot be connected with some document.

In this case you would need to create some custom comments table. On column of this table would be news id - so comments would be connected with news record. Then you could display data using for example custom table repeater web part which Where condition would be set dynamically using the query parameter ({%queryparam%}). In this case you would need to manage inserting of comments in some custom web part.

Best regards,
Ivana Tomanickova