More in this section

Forums / Developing with Sitefinity / Use Sitefinity Sitemap / Menu in other website

Use Sitefinity Sitemap / Menu in other website

1 posts, 0 answered
  1. Ole
    Ole avatar
    1 posts
    28 May 2008
    04 Jun 2012
    Link to this post

    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. (main website) (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 that can be read on
    2) Query the database directly to build a sitemap to use used for the 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