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

Forums / Bugs & Issues / Importing SiteMap into SiteFinity

Importing SiteMap into SiteFinity

8 posts, 0 answered
  1. Daniel Lewis
    Daniel Lewis avatar
    27 posts
    Registered:
    23 Sep 2009
    29 Sep 2009
    Link to this post
    In my Master page I have has a SiteMapDataSource that drives a .Net Menu.

    I put the reference to the SiteMapDataSource in the Sitefinity web.config:

        <siteMap defaultProvider="CmsSiteMapProvider" enabled="true">
          <providers>
            <clear />
            <add name="CmsSiteMapProvider" description="Displays Cms Pages" type="Telerik.Cms.Web.CmsSiteMapProvider" />
            <add name="SiteMapDataSource" securityTrimmingEnabled="true" siteMapFile="App_Master/Web.sitemap" type="System.Web.XmlSiteMapProvider"/>
          </providers>
        </siteMap>

    And in my Master:

                                                <asp:SiteMapDataSource ID="SiteMapDataSource" Runat="server" />                                                                            
                                                <asp:Menu ID="Menu1" runat="server"  DataSourceId="SiteMapDataSource"
                                                    Orientation="Horizontal" StaticDisplayLevels="2"
                                                    MaximumDynamicDisplayLevels="1" StaticEnableDefaultPopOutImage="False"
                                                    CssClass="headerlink" StaticSelectedStyle-ItemSpacing="35px"
                                                    StaticMenuItemStyle-ItemSpacing="35px" StaticSubMenuIndent=""
                                                    DynamicMenuItemStyle-CssClass="DynamicMenuItemStyle"
                                                    DynamicMenuStyle-CssClass="DynamicMenuStyle"
                                                    DynamicHoverStyle-CssClass="DynamicMenuHoverItemStyle"
                                                    >
                                                    <StaticMenuItemStyle  CssClass="headerlink" ItemSpacing="30px" />
                                                    <StaticHoverStyle CssClass="headerlink" />
                                                    <StaticMenuStyle CssClass="headerlink" />
                                                    <StaticSelectedStyle CssClass="headerlink" ItemSpacing="30px" />
                                                </asp:Menu>


    All that I get on the Preview of the template is:


    The non-templated version looks like this on a non-Sitefinity page:

    http://www.judge.com/new.net

    You can see the menu control there.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    29 Sep 2009
    Link to this post
    Hello Daniel Lewis,

    Try setting ShowStartingNode="false"  for SiteMapDataSource control. Let us know how it goes.

    Kind 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. Daniel Lewis
    Daniel Lewis avatar
    27 posts
    Registered:
    23 Sep 2009
    30 Sep 2009
    Link to this post
    It did not change anything except that I no longer see [Site Map].

    What else can I try?  Am I not trying to import this properly?


  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    01 Oct 2009
    Link to this post
    Hi Daniel Lewis,

    Set SiteMapProvider property of SiteMapDataSource control to your custom XmlSiteMapProvider. The default provider in your web.config file is CmsSiteMapProvider - this is the Sitefinity provider. You can gather more information at XmlSiteMapProvider Class and SiteMapProvider Class

    I hope this helps.

    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.
  5. Daniel Lewis
    Daniel Lewis avatar
    27 posts
    Registered:
    23 Sep 2009
    01 Oct 2009
    Link to this post
    OK -

    So setting up the default provider works fine.

    The problem is that how we natively created the control inside of VS2008, the SiteMap displays along with dropdowns - not a simple horizontal list like what the siteFinity version is giving me.

    Any suggestions of where to go from here?
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    01 Oct 2009
    Link to this post
    Hello Daniel Lewis,

    Could you elaborate some more or send a screenshots. Generally this is a way of rendering in two different environments.

    Greetings,
    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.
  7. Daniel Lewis
    Daniel Lewis avatar
    27 posts
    Registered:
    23 Sep 2009
    01 Oct 2009
    Link to this post
    I've attached how the control is rendered natively via an IIS / .aspx environment.  I've also attached how SiteFinity handles the control.
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    05 Oct 2009
    Link to this post
    Hi Daniel Lewis,

    It seems that the styles you use do not apply and the menu is not styled. Please check the referenced to your css classes.

    All the best,
    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.
Register for webinar
8 posts, 0 answered