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

Forums / Project Feather / Blog Post View Comment Layout

Blog Post View Comment Layout

4 posts, 0 answered
  1. John
    John avatar
    61 posts
    Registered:
    08 Jun 2012
    22 Jul
    Link to this post

    Hello,

    We would like to customize the MVC view template for working with comments in a  Blog Post detail view. We were able to add a custom Blog Post detail view and customize it's layout, but it simply calls Html.CommentsList to render comments. I don't see any options anywhere to specify a view to use when rendering comments.

    As far as I can tell, all comments use the same template, regardless of the content time the comments are for. I don't see any way to add a custom MVC view template for a Blog Post comment. 

    I hope I'm missing something simple - Is there a way to do this?

    Thank you.

  2. Victor Leontyev
    Victor Leontyev avatar
    65 posts
    Registered:
    01 Jul 2014
    22 Jul in reply to John
    Link to this post

    Template for Blog Post comments is the same as Comments widget.

    To change it, just create/change template inside this folder {YOUR RESOURCE PACKAGE}\MVC\Views\Comments\Comments.Default.cshtml

     

  3. John
    John avatar
    61 posts
    Registered:
    08 Jun 2012
    22 Jul in reply to Victor Leontyev
    Link to this post

    Thank you, Victor. Does this mean that overriding the comments view is a universal change that affects how all comments appear, regardless of the content type (e.g. News comments, Blog comments, Page comments, etc)?

     

  4. Victor Leontyev
    Victor Leontyev avatar
    65 posts
    Registered:
    01 Jul 2014
    22 Jul in reply to John
    Link to this post
    Yes. It will override everywhere
4 posts, 0 answered