More in this section

Forums / Developing with Sitefinity / Map templates for providers as possible?

Map templates for providers as possible?

3 posts, 0 answered
  1. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    05 Oct 2009
    Link to this post
    Hi Team,

    It's possible to avoid not same templates for providers in same Module like News and Breaking news (2 providers of same News Module)?

    Thanks.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    05 Oct 2009
    Link to this post
    Hi Pierre,

    Please take a look at the following article - Mapping to different templates based on provider name.

    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. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    05 Oct 2009
    Link to this post
    Hi,

    Oops, I have searched with no succes. I have tried but i have lost initial declaration for layoutTemplatePath generating one error.

    Mistake : no default initial layout
    <viewSettings hostType="Telerik.News.WebControls.Admin.NewsItemsNew" > <===ERROR HERE no layout
          <additionalTemplates> 
            <add key="News" layoutTemplatePath="~/../Admin_Custom/News/NewsItemsNew.ascx" /> 
            <add key="Competencias" layoutTemplatePath="~/../Admin_Custom/prov2/NewsItemsNew.ascx" /> 
            <add key="Facilidades" layoutTemplatePath="~/../Admin_Custom/prov3/NewsItemsNew.ascx" /> 
            <add key="Tecnologias" layoutTemplatePath="~/../Admin_Custom/prov4/NewsItemsNew.ascx" /> 
         </additionalTemplates> 
        </viewSettings> 

    Correct solution:
    <!--Provides user interface for displaying the list of tags for the content items.-->   
        <viewSettings hostType="Telerik.Cms.Engine.WebControls.Tags.TagsList" layoutTemplatePath="~/Sitefinity/ControlTemplates/Generic_Content/TagsList.ascx">   
          <additionalTemplates>   
            <add key="Blogs"    
                    layoutTemplatePath="~/Sitefinity/ControlTemplates/Blogs/TagsList.ascx" />         
          </additionalTemplates>       
    </viewSettings>  

    New architecture is great, only translations admin side is  the problem, i dreaming in new v4. Thanks
Register for webinar
3 posts, 0 answered