18 Dec 2008
11 Mar 2009
Link to this post
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:
<!--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" />
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.