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

Forums / Developing with Sitefinity / How to find out if a page is using extrnal template

How to find out if a page is using extrnal template

2 posts, 0 answered
  1. Richa
    Richa avatar
    69 posts
    Registered:
    04 Jun 2009
    23 Sep 2009
    Link to this post
    I have a page: TestPage which has EventsScheduleView control on it.
    In the website I have Telerik.Sitefinity.Configuration.ControlsConfig.xml:
    <?xml version="1.0" encoding="utf-8" ?>
    <controlsConfig>
      <viewMap>
        <viewSettings hostType="Telerik.News.WebControls.Admin.NewsItemNew"
    layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/Events/EventsScheduleView.ascx">
        </viewSettings>
      </viewMap>
    </controlsConfig>

    I have EventsScheduleView.ascx file in place.
    Now if i edtit the EventsScheduleView control on TestPage, the property: LayoutTemplateName shows: Telerik.Events.Resources.ControlTemplates.Frontend.EventsScheduleView.ascx
    Is it correct? I mean should it show something else if it's really using the external template? or how does one find out if a control is using external template, in general?
    (sorry for the typo in the title :( while editing i realized that u cant edit the title)
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    23 Sep 2009
    Link to this post
    Hello Richa,

    The xml snipped you posted shows mapping a backend template. All backend templates have to be mapped through ControlsConfig file. All ContentView based conrols are mapped through the designer form ItemListTemplatePath and SingleitemTemplatePath properties. EventsScheduleView control template can be mapped throgh LayoutTemplatePath property.

    Note that if you make changes to ControlsConfig file they will not take effect untill the application is restarted.

    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.
2 posts, 0 answered