I have an Umbraco V4.5 instance running multiple sites, I have a couple of pages that are common to both sites and do not need to appear on any menu's, I want to be able to access these common pages without having to duplicate them in each site. The site structure is as follows:
Site A (hostname defined as www.site1.co.uk) - Home - Page 1 - Page 2
Site B (hostname defined as www.site2.co.uk) - Home - Page 1 - Page 2
CommonPage1 CommonPage2
I want to have a link someone on Site 1 and also on Site 2 that points to /CommonPage1.aspx which shows the page. With the structure above CommonPage1 does seem to get a URL of /CommonPage1.aspx when I look in Umbraco but if try to click on the link it pops up saying the page cannot be found. Does anyone know if what I am trying to achieve is actually possible and if so how I can make it work? I would rather not have to create the common pages under each website because all they do is have a user control on them and I have at the moment 5 sites and a lot of common pages that I need to create. Any help would be appreciated.
trfletch, what you're doing should work fine, I do it a lot with things like sitemaps, terms and conditions, etc. Are you getting an actual 404 error when you go to /CommonPage1.aspx ? The "pops up" part is throwing me off...
I'm thinking you could set CommonPage1 up exactly as above, "outside" of the actual sites. Then you create dummy pages where you want them to appear, URL-wise inside the sites and use the umbracoInternalRedirectId property on those to transparently load the CommonPage1 page...
Amir: It definately does not work, I get the umbraco 404 error when trying to navigate to the page, I was wondering if the confusion is because the different sites have hostnames set and these pages are not within any of the nodes therefore do not have a hostname associated with them.
Chriztian: I can see how your idea might work but it still involves me having to create the pages on each site which is what I did not want to have to do. These pages only contain a rich text editor with a usercontrol in so it is not like there is a massive amount of content I would have to replicate for each just that I would rather not have to create the pages each time I add a new site.
Multiple sites referencing the same page
Hi,
I have an Umbraco V4.5 instance running multiple sites, I have a couple of pages that are common to both sites and do not need to appear on any menu's, I want to be able to access these common pages without having to duplicate them in each site. The site structure is as follows:
Site A (hostname defined as www.site1.co.uk)
- Home
- Page 1
- Page 2
Site B (hostname defined as www.site2.co.uk)
- Home
- Page 1
- Page 2
CommonPage1
CommonPage2
I want to have a link someone on Site 1 and also on Site 2 that points to /CommonPage1.aspx which shows the page. With the structure above CommonPage1 does seem to get a URL of /CommonPage1.aspx when I look in Umbraco but if try to click on the link it pops up saying the page cannot be found. Does anyone know if what I am trying to achieve is actually possible and if so how I can make it work? I would rather not have to create the common pages under each website because all they do is have a user control on them and I have at the moment 5 sites and a lot of common pages that I need to create. Any help would be appreciated.
trfletch, what you're doing should work fine, I do it a lot with things like sitemaps, terms and conditions, etc. Are you getting an actual 404 error when you go to /CommonPage1.aspx ? The "pops up" part is throwing me off...
Hi trfletch,
Have you tried using the umbracoInternalRedirectId property?
I'm thinking you could set CommonPage1 up exactly as above, "outside" of the actual sites. Then you create dummy pages where you want them to appear, URL-wise inside the sites and use the umbracoInternalRedirectId property on those to transparently load the CommonPage1 page...
/Chriztian
Thanks for the responses
Amir: It definately does not work, I get the umbraco 404 error when trying to navigate to the page, I was wondering if the confusion is because the different sites have hostnames set and these pages are not within any of the nodes therefore do not have a hostname associated with them.
Chriztian: I can see how your idea might work but it still involves me having to create the pages on each site which is what I did not want to have to do. These pages only contain a rich text editor with a usercontrol in so it is not like there is a massive amount of content I would have to replicate for each just that I would rather not have to create the pages each time I add a new site.
Have you looked at the relationship API?
http://umbraco.org/help-and-support/video-tutorials/developing-with-umbraco/events/sync-2-websites-with-events-and-the-relationship-api
Rich
is working on a reply...