More in this section

Forums / Developing with Sitefinity / Need different menu links in header and footer

Need different menu links in header and footer

2 posts, 0 answered
  1. Anuj
    Anuj avatar
    13 posts
    Registered:
    12 Dec 2008
    12 Dec 2008
    Link to this post
    We need your help in following regard.
    We have following menus in our website
    Home, Company Information, Our Services, Our Portfolio, Our Processes, Our Partners, Client Testimonials and Contact Us
    In header we have used SiteTabStrip for displaying all main menus,
    In footer I want to show only
    Our Services, Our Portfolio, Our Processes, Our Partners, Client Testimonials and Contact Us
    In this case can you tell me which control we can use for skipping some of pages links (but those will show in header)
  2. Parvan
    Parvan avatar
    151 posts
    Registered:
    24 Sep 2012
    12 Dec 2008
    Link to this post
    Hello Anuj,

    Please, follow the steps below to achieve the required functionality:

    1. Put the attached files (CustomSiteTabstrip.ascx and CustomSiteTabstrip.ascx.cs) in
    /[Your_Project]/Sitefinity/UserControls/Navigation35/ folder.

    2. Modify CustomSiteTabstrip.ascx in order to add the tabs which should be displayed:

    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="CustomSiteTabstrip.ascx.cs" Inherits="UserControls_SiteMapNavigationControls_CustomSitemapTabstrip" %> 
    <%@ Register Assembly="RadTabstrip.Net2" Namespace="Telerik.WebControls" TagPrefix="radTS" %> 
    <div> 
    <radTS:RadTabStrip ID="RadTabstrip1" runat="server" EnableViewState="false">  
        <Tabs>    
            <radTS:Tab NavigateUrl="~/OurServices.aspx" Text="Our Services" /> 
            <radTS:Tab NavigateUrl="~/OurPortfolio.aspx" Text="Our Portfolio" /> 
            <radTS:Tab NavigateUrl="~/OurProcesses.aspx" Text="Our Processes" /> 
            <radTS:Tab NavigateUrl="~/OurPartners.aspx" Text="Our Partners" /> 
            <radTS:Tab NavigateUrl="~/ClientTestimonials.aspx" Text="Client Testimonials" /> 
            <radTS:Tab NavigateUrl="~/ContactUs.aspx" Text="Contact Us" /> 
        </Tabs> 
    </radTS:RadTabStrip> 
    </div> 

    Text - this property gets/sets the text of the tab.
    NavigateUrl
    - this property gets/sets the url of the page where the user will be redirected when clicking on the tab. So you should only change the NavigateUrl property.

    3. Register CustomSiteTabstrip.ascx control in the <toolboxControls> section of the project web.config file to display it in Add Controls toolbox, section Navigation:

    <toolboxControls> 
    .............  
       <add name="Custom Site Tabstrip" section="Navigation" url="~/Sitefinity/UserControls/Navigation35/CustomSiteTabstrip.ascx"/>  
    </toolboxControls> 

    Hope this helps.

    Sincerely yours,

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered