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

Forums / Developing with Sitefinity / How to Customize the Blog

How to Customize the Blog

7 posts, 0 answered
  1. Rohit
    Rohit avatar
    11 posts
    Registered:
    06 Jan 2011
    17 Jun 2011
    Link to this post

    Dear Team,

    Really appreciate your fast processing on questions.

    I have a Question regarding blogs to comment on the blog. There are Your name,Email,Website and Comment fields to enter the comment. What I need I just want only comment field to enter the comment or I could customize the comment section and use the email, name and website url for which the user login with. I made an another login screen to login the user on the website.

    Please provide me necessary details or any demo code so that I could do that.

     

    Thanks

    Rohit

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    17 Jun 2011
    Link to this post
    Hi Rohit,

    You need to replace the CommentsDetailsView. Please check this forum thread.

    In your custom class that inherits from CommentsDetailsView you should override OnPreRender where you can access the controls from the template and set predefined values.
    Here is a list with all public properties.

    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
  3. Rohit
    Rohit avatar
    11 posts
    Registered:
    06 Jan 2011
    22 Jun 2011
    Link to this post
    Dear Team,

    I do not know from where i have to start, Please send me some steps to follow to do this.
    i am very new to sitefinity and do not know how to do it. So please send me steps to follow.
     
    Thanks Rohit
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    22 Jun 2011
    Link to this post
    Hello Rohit,

    Can you be more specific what exactly is not clear in the steps outlined in this post?

    All the best,
    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
  5. Rohit
    Rohit avatar
    11 posts
    Registered:
    06 Jan 2011
    22 Jun 2011
    Link to this post
    Dear Team,

    I have created a usercontrol extensioncomment.ascx
     

    <%

     

    @ Control Language="C#" AutoEventWireup="true" CodeBehind="extensioncomment.ascx.cs" Inherits="SitefinityWebApp.UserControls.extensioncomment" %>

     


    Now what i have to do to customize the comment on blogs. I need to add a new class or paste the same code into the usercontrol by inheriting the CommentsDetailsView and where to register it. Can you specify what exactly need to do for achieving this.
    i am using the trial version of sitefinity.
    Rohit 
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    22 Jun 2011
    Link to this post
    Hello Rohit,

    Here are the steps you should follow

    1. Create a class library
    2. Create a custom class that inherits from Telerik.Sitefinity.Modules.GenericContent.Web.UI.Views.CommentsDetailsView
    3. Override LayoutTemplateName and set your custom template -ascx
    4. The template should be build as a an embedded resource  in the class library
    5. Use virtual path provider settings to register the template
    6. Replace the default view with your custom as my screenshot shows.

    Kind regards,
    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
  7. Rohit
    Rohit avatar
    11 posts
    Registered:
    06 Jan 2011
    22 Jun 2011
    Link to this post
    Thanks Ivan for the steps

    Could You please elaborate these point, I am bit confusing.

    4. The template should be build as a an embedded resource  in the class library
    5. Use virtual path provider settings to register the template
    6. Replace the default view with your custom as my screenshot shows

    Rohit
7 posts, 0 answered