Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • trfletch 598 posts 604 karma points
    Dec 14, 2010 @ 18:57
    trfletch
    0

    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.

  • Amir Khan 1287 posts 2744 karma points
    Dec 14, 2010 @ 21:19
    Amir Khan
    0

    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...

  • Chriztian Steinmeier 2800 posts 8790 karma points MVP 8x admin c-trib
    Dec 14, 2010 @ 22:10
    Chriztian Steinmeier
    0

    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 

  • trfletch 598 posts 604 karma points
    Dec 14, 2010 @ 22:32
    trfletch
    0

    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.

  • Rich Green 2246 posts 4008 karma points
    Dec 14, 2010 @ 22:39
Please Sign in or register to post replies

Write your reply to:

Draft