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

Forums / Developing with Sitefinity / blog external templates not working

blog external templates not working

3 posts, 0 answered
  1. Benjamin Nwaneampeh
    Benjamin Nwaneampeh avatar
    4 posts
    Registered:
    22 Feb 2010
    01 Mar 2010
    Link to this post

    I tried to do exactly as you've explained in the article about mapping external templates, but I can't seem to get it to work. Below is what I have in my Telerik.Sitefinity.Configuration.ControlsConfig.xml which has been placed in "Configuration" folder within App_Data

    <?xml version="1.0" encoding="utf-8"?>
    <controlsConfig>
        <viewMap>
            <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>
        </viewMap>
    </controlsConfig>

    The templates exist is the location specified. I've tried modifing the templates and restarting the application, but to no avail. Can't seem to see the changes I make. Is there something I'm missing?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    01 Mar 2010
    Link to this post
    Hello Benjamin Nwaneampeh,

    Use ItemListTemplate and SingleItemTemplate as a keys of the mappings. You may also find this post useful - Working with Presentation modes

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Benjamin Nwaneampeh
    Benjamin Nwaneampeh avatar
    4 posts
    Registered:
    22 Feb 2010
    01 Mar 2010
    Link to this post
    Thanks Ivan! It now works.
Register for webinar
3 posts, 0 answered