Configuring Enterprise Sites
The other day I was setting up my first EPiServer CMS 5 Enterprise site, using the following technical note as a guide. I had some trouble getting *internal links to work - *internal meaning links within the same EPiServer database, but on another site.
Take the scenario of a solution with 6 sites, where 4 are using the same source files, and the other 2 are separate installations - all using the same database. Sharing the database enables use of common page templates, as well as ”easy access” to information (pages) on other sites.
According to the technote, you should add a new site setting to web.config for all sites sharing the same set of files. The other two installations' web.config files contained only one site setting (since it was not shared).
If the other site sections are not added to web.config, the startpage icons will be missing from the pagetree. To the left you see that the sites in red are not recongnized as separate sites by EPiServer.
If you press a pagelink on one of the other sites, EPiServer will load the page information correctly but keep the context of the current site.
What I want to achieve is to switch site whenever the user selects a link that belongs to another site. I'm using property type Page ( which gives us access to the complete page tree ), though the page is not on the same website.
In order for this to happen, all web.config files need to contain site information for all 6 sites, even if not sharing source files. Otherwise EPiServer will not be able to identify that the page belongs to another site.
15 January 2008