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

Forums / Developing with Sitefinity / Blog Post control

Blog Post control

2 posts, 0 answered
  1. Kalpana
    Kalpana avatar
    27 posts
    Registered:
    18 Dec 2008
    11 Mar 2009
    Link to this post
    Hi

    Here is what I am trying to do - i wanted to change the look of the comments display in a single post. I have a BlogPost control on my page. This displays all the posts in a  blog and I click on comments on a post and it takes me to a page where I can add comments. To change the layot of this page I copied the ContentViewSingleItem.ascx and ContentViewItemList.ascx to my ~/Sitefinity/ControlTemplates/Blogs and I also copied the corresponding App_resources files. I changed the App_Data/Configuration/Telerik.Sitefinity.Configuration.controls.xml and added the following:

        <viewSettings hostType="Telerik.Blogs.WebControls.BlogPosts">
          <additionalTemplates>
            <!--Provides user interface for displaying a list of posts in the BlogPosts control in the blogs module.-->
            <add key="ItemListTemplatePath" layoutTemplatePath="~/Sitefinity/ControlTemplates/Blogs/ContentViewItemList.ascx" />
            <!--Provides user interface for displaying a single post in the BlogPosts control in the blogs module.-->
            <add key="SingleItemTemplatePath" layoutTemplatePath="~/Sitefinity/ControlTemplates/Blogs/ContentViewSingleItem.ascx" />
          </additionalTemplates>
        </viewSettings>

    I rebuilt the application. I am viewing the blogpage and I dont see the changes I made.

    Am I doing the right thing - I want to make sure I am changing the right control.

    Thanks.

    Kalpana
  2. Sonya
    Sonya avatar
    231 posts
    Registered:
    24 Sep 2012
    12 Mar 2009
    Link to this post
    Hi Kalpana,

    Please read the following blog post on how to map the templates of controls that are based on ContentView which includes BlogPosts as well:
    Mapping ContentViewDesigners and working with Presentation Modes

    Let us know if you still experience any problems.

    Greetings,
    Sonya
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered