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

Forums / Sitefinity SDK / /ControlTemplates missing from empty template package

/ControlTemplates missing from empty template package

2 posts, 0 answered
  1. Ricci
    Ricci avatar
    2 posts
    Registered:
    03 Feb 2011
    20 May 2011
    Link to this post
    In the Designer's Documentation it refers to the empty template project and says there are templates there.  I am looking for the NavigationControl.ascx specifically.


    Thanks in advance,
     Ryan
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    20 May 2011
    Link to this post
    Hello Ricci,

    Here is the base template

    <%@ Control Language="C#" %>
    <%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" TagPrefix="sf" %>
    <%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI.NavigationControls.SiteMapNavigations" TagPrefix="navcontrols" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
     
     
     
    <sf:ConditionalTemplateContainer ID="conditionalTemplate" runat="server">
        <Templates>
            <sf:ConditionalTemplate Left="NavigationMode" Operator="Equal" Right="HorizontalSimple" runat="server">
                 <navcontrols:SiteMapNavigationTabStrip ID="siteMapControl_horizontalsimple" runat="server" Skin="Sitefinity">
                 </navcontrols:SiteMapNavigationTabStrip>
            </sf:ConditionalTemplate>
            <sf:ConditionalTemplate Left="NavigationMode" Operator="Equal" Right="HorizontalDropDownMenu" runat="server">
                <navcontrols:SiteMapNavigationMenu ID="siteMapControl_horizontaldropdownmenu" runat="server"  Skin="Sitefinity" />
            </sf:ConditionalTemplate>
            <sf:ConditionalTemplate Left="NavigationMode" Operator="Equal" Right="HorizontalTabs" runat="server">
               <navcontrols:SiteMapNavigationTabStrip ID="siteMapControl_horizontaltabs" runat="server" Skin="Sitefinity">
                 </navcontrols:SiteMapNavigationTabStrip>
            </sf:ConditionalTemplate>
            <sf:ConditionalTemplate Left="NavigationMode" Operator="Equal" Right="VerticalSimple" runat="server">
                <navcontrols:SiteMapNavigationTabStrip ID="siteMapControl_verticalsimple" runat="server" Orientation="VerticalLeft" MaxDataBindDepth="1" Skin="Sitefinity">
                 </navcontrols:SiteMapNavigationTabStrip>
            </sf:ConditionalTemplate>
            <sf:ConditionalTemplate Left="NavigationMode" Operator="Equal" Right="SiteMapInColumns" runat="server">
                <navcontrols:SitemapNavigationSiteMapControl ID="siteMapControl_sitemapincolumns" runat="server" MaxDataBindDepth="2" Skin="Sitefinity">
                <LevelSettings>
                    <telerik:SiteMapLevelSetting  Level="0">
                        <ListLayout RepeatDirection="Vertical" RepeatColumns="10" />
                    </telerik:SiteMapLevelSetting>
                </LevelSettings>
                </navcontrols:SitemapNavigationSiteMapControl>
            </sf:ConditionalTemplate>
            <sf:ConditionalTemplate Left="NavigationMode" Operator="Equal" Right="SiteMapInRows" runat="server">
                <navcontrols:SitemapNavigationSiteMapControl ID="siteMapControl_sitemapinrows" runat="server" MaxDataBindDepth="2" Skin="Sitefinity">
                 <LevelSettings>
                    <telerik:SiteMapLevelSetting>
                        <ListLayout RepeatColumns="1" AlignRows="true" />
                    </telerik:SiteMapLevelSetting>
                    <telerik:SiteMapLevelSetting Layout="Flow" SeparatorText="┊" />
                </LevelSettings>
                </navcontrols:SitemapNavigationSiteMapControl>
            </sf:ConditionalTemplate>
            <sf:ConditionalTemplate Left="NavigationMode" Operator="Equal" Right="CustomNavigation" runat="server">
                <telerik:RadSiteMap ID="siteMapControl_customnavigation" runat="server" Skin="Sitefinity" />
            </sf:ConditionalTemplate>
            <sf:ConditionalTemplate Left="NavigationMode" Operator="Equal" Right="VerticalTree" runat="server">
                <navcontrols:SiteMapNavigationTreeView runat="server" id="siteMapControl_verticaltree" Skin="Sitefinity">
                </navcontrols:SiteMapNavigationTreeView>
            </sf:ConditionalTemplate>
        </Templates>
    </sf:ConditionalTemplateContainer>
    <script type="text/javascript">
         
     
        function radMenuOnClick(sender, args) {
     
            var state = args.get_item().get_attributes().getAttribute("ExpandOnClick");
            args.get_item().get_attributes().setAttribute("ExpandOnClick", "true")
            args.get_item().open();
        }
     
        function radMenuOnOpening(sender, args) {
            var state = args.get_item().get_attributes().getAttribute("ExpandOnClick");
            if(state != "true")
                args.set_cancel(true);
            args.get_item().get_attributes().setAttribute("ExpandOnClick", "false")
        }
    </script>


    All the best,
    Ivan Dimitrov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

2 posts, 0 answered