Copied to clipboard

Flag this post as spam?

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


  • Janet Kirklen 102 posts 212 karma points
    Dec 20, 2013 @ 00:13
    Janet Kirklen
    0

    Sharing content between 2 Umbraco Sites

    I have 2 instances of Umbraco on the same server.  One is the company public site and the other is the company intranet.  I would like to access some of the intranet content and display it on the public site.  Can I use Umbraco NodeFactory to do this? Or is there another way to do that?

  • Andy Butland 422 posts 2334 karma points MVP 4x hq c-trib
    Dec 20, 2013 @ 10:39
    Andy Butland
    100

    Not sure if there's a better way but I believe if they are two seperate instances - as opposed to a single instance with two sites defined in it - you won't be able to query the nodes of the "other" site like that.

    One option might be to set up a web service on the intranet site that exposes the information you want, and have a page on the destination site access that service to display the content?  That "web service" might not even need to be that sophisticated, it could perhaps just be a page set up using an alternate template that exposes the information you want as XML - kind of like the way an RSS feed works.

    Hope that helps you get started at least.

    Andy

  • Janet Kirklen 102 posts 212 karma points
    Dec 20, 2013 @ 22:36
    Janet Kirklen
    0

    Thank you for pointing me in this direction.  I created an XMLFeed script to build the xml items.  I added to an empty template.  

    Then I created a GetXMLFeed script that link to the XMLFeed using the altTemplate.  Works like a charm.  

    This thread was very helpful:

    http://our.umbraco.org/forum/developers/razor/42299-Read-attribute-of-xml-node

Please Sign in or register to post replies

Write your reply to:

Draft