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?
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.
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?
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
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
is working on a reply...