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

Forums / Developing with Sitefinity / Custom Template Path for Navigation control

Custom Template Path for Navigation control

2 posts, 0 answered
  1. Mark
    Mark avatar
    12 posts
    Registered:
    04 Aug 2010
    27 Feb 2014
    Link to this post

    In Sitefinity 4.X, when you configured a navigation control, under "Design Settings" you could set Custom Template Path to a user control that you created. 

    We are trying to move to version 6.X, and in the user interface for the navigation control, the Custom Template Path entry does not exist anymore. When I try to set the path to the user control via the Layout Template Path entry in version 6, I get an error that says, "A required control was not found in the template for "~/ControlTemplates/RetireTrackNav/RetireTrackNav.ascx". The control must be assignable from type "Telerik.Sitefinity.Web.UI.NavigationControls.SitefinitySiteMapDataSource" and must have ID "dataSource". This implies that perhaps I have to change my code, but I haven't been able to find out how to change my code so it will work, or even if that is the real fix.

     Anyone have any thoughts or experience with this?

    Thanks in advance.

  2. Vassil Vassilev
     Vassil Vassilev avatar
    308 posts
    Registered:
    21 Jan 2015
    28 Feb 2014
    Link to this post
    Hello Mark,

    You got the right path, but this error indicates that you are missing the SitefinitySiteMapDataSource control
    from your page template. You can use the out-of-the-box template as starter point, which could be found on your navigation widget Edit, pick up a template end click "Edit selected template".

    If you need to extend the out-of-the-box navigation, you create your own user control, and you need to inherit from LightNavigationControl class.

    You can also activate the older Navigation by registering it in your toolbox sections as described in this documentation article:
    http://www.sitefinity.com/documentation/documentationarticles/old-navigation-widget

    Regards,
    Vassil Vassilev
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered