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

Forums / Developing with Sitefinity / Trouble with Blog External Tamplates

Trouble with Blog External Tamplates

4 posts, 0 answered
  1. John
    John avatar
    14 posts
    Registered:
    07 Nov 2008
    07 Jan 2010
    Link to this post
    We've recently upgraded one of our sites from 3.5 to 3.7.

    The site had had some modifications to the Control Templates to accommodate some additional meta data, which, as expected were lost during the upgrade since Sitefinity now uses embedded templates.

    We've followed the directions to use external templates here, but are are having issues. We've overriden both the template for new blog posts, and the template for editing blog posts, but neither seem to be picked up. Here are the steps we've taken:

    1. Add a file called Telerik.Sitefinity.Configuration.ControlsConfig.xml to our App_Data folder, which has the following contents:

    <?xml version="1.0" encoding="utf-8" ?>  
    <controlsConfig>  
      <viewMap>  
        <!--Provides user interface for creating new blog post in the blogs module.--> 
        <viewSettings hostType="Telerik.Blogs.WebControls.Admin.PostNewView" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/Blogs/PostNew.ascx" /> 
        <!--Provides user interface for editing a blog post in the blogs module.--> 
        <viewSettings hostType="Telerik.Blogs.WebControls.Admin.PostEditView" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/Blogs/PostEdit.ascx" /> 
      </viewMap>  
    </controlsConfig>  


    2. Place the PostNew.ascx and  templates PostEdit.ascx into the folders that are referenced in the above xml,
    3. Modify the templates in some way to see whether they're being picked up.
    4. Re-start the application.
    5. Go to create a new blog post or edit a new blog post and see if the external templates are being picked up.

    Are we missing a step or doing something wrong?

    Thanks!

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    07 Jan 2010
    Link to this post
    Hi John,

    1. Add a file called Telerik.Sitefinity.Configuration.ControlsConfig.xml to our App_Data folder, which has the following contents:

    The Telerik.Sitefinity.Configuration.ControlsConfig.xml should be added to App_Data/Configuration folder. I am not sure whether you have done this. All other steps you followed seems to be fine.


    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. John
    John avatar
    14 posts
    Registered:
    07 Nov 2008
    08 Jan 2010
    Link to this post
    I have confirmed that the file Telerik.Sitefinity.Configuration.ControlsConfig.xml is located in the ~\App_Data\Configuration\ directory. Any other ideas?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    08 Jan 2010
    Link to this post
    Hi John,

    All steps seems to be correct. There are two things that this cause this behavior - ControlsConfig is not in the correct place or web application is not restarted. Please check this again. If the problem persists send a sample project where you successfully can reproduce the problem, so we could observe it at our end.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
4 posts, 0 answered