More in this section
Forums / Developing with Sitefinity / Use Sitefinity Sitemap / Menu in other website

Use Sitefinity Sitemap / Menu in other website

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
1 posts, 0 answered
  1. Ole
    Ole avatar
    1 posts
    Registered:
    28 May 2008
    04 Jun 2012
    Link to this post
    Hello,

    We use Sitefinity 3.7 for our main website. This summer we are going to implement an e-commerce solution that uses an external CMS/framework. This e-commerce solution will be hosted on a sub domain as a separate site.

    company.com (main website)
    store.company.com (e-commerce website)

    Our goal is to re-create the same look and feel for the e-commerce site (clone existing footer and header from our main website) so the user can seamlessly navigate the main website and the e-commerce site.

    On our e-commerce site we would like to display the same menu we use on our main site in the header. How can we obtain the Sitefinity menu/sitemap and bind it to a regular asp:menu control in our e-commerce site?

    There may be several approaches to this:
    1) Create a dynamic XML file on company.org that can be read on store.company.com
    2) Query the database directly to build a sitemap to use used for the store.company.com for the asp:menu control

    Any suggestions on how this can best be accomplished is greatly appreciated.

    1.var manager = new CmsManager();
    2.var pages = manager.GetPages();
    3.var query = pages.Cast<ICmsPage>().Where(p => p.Navigable = true && p.Status == PageStatus.Published);


    Thank you!
1 posts, 0 answered