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

Forums / General Discussions / Multiple Navigation

Multiple Navigation

4 posts, 0 answered
  1. Joel
    Joel avatar
    28 posts
    Registered:
    18 Jun 2008
    28 Jun 2008
    Link to this post

    I am new to Sitefinity. Overall, I like it.

    I am having the following issue though regarding multiple navigations.

    My site will contain the following nav structures

    Auxillary Nav (top right)
    Main nav (using a dropdown menus)
    Subnav (when on a page, the childs will be shown)
    Footer Nav (links to privacy policy, etc.)

    This is pretty standard, however I am not sure the best method to achieve this.

    Being new to Sitefinity, what is the best way to set this up in a template, using Sitefinity.

    Also, one more suggestion..I am finding a lot of documentation on RadControls as it relates to ASP.NET, etc. however I am not finding the basics covered as it relates within Sitefinity.

    A manual just explaining to designers/front-end coders on how to use Sitefinity to get sites up and running would be ideal.

    Thanks!

  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    08 Dec 2016
    30 Jun 2008
    Link to this post
    Hi Joel,

    I would recommend you use the Navigation controls provided in Sitefinity:
    • Site Menu - user control that represents a wrapper for RadMenu and SitemapDataSource
    • Site Panelbar - user control that represents a wrapper for RadPanelbar and SitemapDataSource
    • Site Tabstrip - user control that represents a wrapper for RadTabStrip and SitemapDataSource
    • Site Treeview - user control that represents a wrapper for RadTreeview and SitemapDataSource
    These controls are specifically configured for representing sitemap data. Please note that their code is distributed with Sitefinity (it can be found in ~/Sitefinity/UserControls/Navigation folder) and therefore you can modify it for custom purposes. For more information on this matter, please refer to the Developer Manual -> Navigation section.

    Do let us know if you need any further assistance.

    Best wishes,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Joel
    Joel avatar
    28 posts
    Registered:
    18 Jun 2008
    30 Jun 2008
    Link to this post

    Thank you..

    For more clarity.

    What's the best way to set up (in the sitemap) and only display certain pages?

    For example..
    For the Auxillary I thought of creating an Auxillary group with all the subpages and then using a Tabstrip to just show that grouping, but it isn't working.

    It seems like all of the menus utilize the full site map and can't be isolated to just so particular pages...

    Once I get the "optimal" way to set it up I think I will be good to go.

    Thanks.


  4. Pepi
    Pepi avatar
    981 posts
    Registered:
    08 Dec 2016
    01 Jul 2008
    Link to this post
    Hi Joel,

    To achieve the required functionality, you need to configure SiteTabstrip control as follows:
        1. Drag and drop Site Tabstrip on the page/template.
        2. Click Edit to open Site Tabstrip Property window.
        3. Expand the Navigation section and set ShowOnlyFirstLevel property to false.
        4. Expand section Behavior and type 0 for HideLevel property.
        5. Click I'm done button to save changes.

    For more information, please have a look at the attached screenshot.

    Another possible approach is to modify the user control (~/Sitefinity/UserControls/Navigation/SiteTabstrip.ascx) and implement a custom data source to bind the tabstrip:

    .ascx
    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="SiteTabstrip.ascx.cs" Inherits="UserControls_SiteMapNavigationControls_SitemapTabstrip" %> 
    <%@ Register Assembly="RadTabstrip.Net2" Namespace="Telerik.WebControls" TagPrefix="radTS" %> 
    <div> 
    <radTS:RadTabStrip ID="RadTabstrip1" runat="server" EnableViewState="false"
    </radTS:RadTabStrip> 
    </div> 

    .ascx.cs
    using Telerik; 
    using Telerik.Cms; 
    using Telerik.Cms.Web; 
    using Telerik.Cms.Web.UI; 
    using Telerik.WebControls; 
    using Telerik.Web; 
    using System.Collections.Generic; 
     
    public partial class UserControls_SiteMapNavigationControls_SitemapTabstrip : UserControl 
     
        /// <summary> 
        /// Overriden. Used to populate the tab strip with pages data. 
        /// </summary> 
        protected void Page_Load(object sender, EventArgs e) 
        { 
            foreach (SiteMapNode node in SiteMap.RootNode.GetAllNodes()) 
            { 
                if (node.Title == "Auxillary"
                { 
                    IList<SiteMapNode> list = new List<SiteMapNode>(); 
                    foreach (SiteMapNode node1 in node.ChildNodes) 
                    { 
                        list.Add(node1); 
                    } 
     
                    RadTabstrip1.DataSource = list; 
                    RadTabstrip1.DataTextField = "Title"
                    RadTabstrip1.DataNavigateUrlField = "Url"
                    RadTabstrip1.DataBind(); 
                } 
            } 
        } 


    Hope this helps.

    Regards,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
4 posts, 0 answered