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.
var manager = new CmsManager();
var pages = manager.GetPages();
var query = pages.Cast<
>().Where(p => p.Navigable = true && p.Status == PageStatus.Published);