+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Comments for any 'content block' or page

Comments for any 'content block' or page

6 posts, 0 answered
  1. Kristian
    Kristian avatar
    214 posts
    Registered:
    03 Jun 2010
    29 Mar 2011
    Link to this post
    The comments apply to news, events and blogs, is there a way to extend these to maybe attach them to a page, or content block or even a custom control?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    29 Mar 2011
    Link to this post
    Hi Kristian,

    The PageData has a property comments, so theoretically it is possible to have comments for pages. You should have custom control that gets/sets the comments. You can get the current page from the SiteMapBase.GetActualCurrentNode and then call PageManager to extract the page node. The PageNode has a property Page which gives you the PageData object over which you can set comments. Note that the group pages do not have PageData.

    Regards,
    Ivan Dimitrov
    the Telerik team
  3. Kristian
    Kristian avatar
    214 posts
    Registered:
    03 Jun 2010
    30 Mar 2011
    Link to this post
    Cool, the comments per page takes care of one of my needs, but I also need to be able to attach comments to a custom control any be able to manipulate when it is visible and to who. Is this possible with the comments or is this something I should wait for the forums module to be available?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    01 Apr 2011
    Link to this post
    Hi Kristian,

    There aren't granular permissions for comments. You can choose only between registered and anonymous users and you can approve the comments before they get shown on the website. Of course it is possible to customize the comments view a bit to achieve your goal.

    All the best,
    Ivan Dimitrov
    the Telerik team

  5. Qainan
    Qainan avatar
    24 posts
    Registered:
    25 Oct 2011
    01 Nov 2011
    Link to this post
    Dear Ivan / Kristian,

    Please can you provide me sample so I unable to find PageData and Don't know how to do implementation, I would be great full if any one can tell me one by one steps.

    Regards,
    Qainanidris.com
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    02 Nov 2011
    Link to this post
    Hello Qainan,

    Please take a look at our developers manual where you will find the references you need.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
6 posts, 0 answered