We currently have multiple Umbraco sites running on our server. There is a central container to store news and events items that are created in the Umbraco backend. We have a website that is not made in Umbraco that should reference those news and event container nodes. The website will be running on a different server. And the logic to collect the correct nodes is written with C#, so the webservice can use these dll's
For the current websites I select the event container like this Node eventContainer = Node.GetNodeByXpath("//ancestor-or-self::*/EventsContainer");
My question is, how can I select that same node but from a different location. I thought I could get this by prefixing the IP address of the server like
An alternative approach, could you create an RSS feed on the Umbraco server to expose the news and event details, and then consume this feed on the other non-Umbraco server? You could use IIS manager and its Directory Security settings to stop other IP addresses access this feed if you want to protect the information on the feed.
Select nodes from umbraco on server
Hi all,
We currently have multiple Umbraco sites running on our server.
There is a central container to store news and events items that are created in the Umbraco backend.
We have a website that is not made in Umbraco that should reference those news and event container nodes.
The website will be running on a different server.
And the logic to collect the correct nodes is written with C#, so the webservice can use these dll's
For the current websites I select the event container like this
Node eventContainer = Node.GetNodeByXpath("//ancestor-or-self::*/EventsContainer");
My question is, how can I select that same node but from a different location.
I thought I could get this by prefixing the IP address of the server like
Node eventContainer = Node.GetNodeByXpath("ipaddress/umbraco root folder //ancestor-or-self::*/EventsContainer");
but that gives a 'not nodeset' error
Can anyone give me a proper example how this can be fixed?
Thanks in advance
Greetz
An alternative approach, could you create an RSS feed on the Umbraco server to expose the news and event details, and then consume this feed on the other non-Umbraco server? You could use IIS manager and its Directory Security settings to stop other IP addresses access this feed if you want to protect the information on the feed.
Richard
An RSS feed could be a possible solution. Thanks for the info.
But we took another approach by quering directly to the Umbraco content xml file through a webservice.
Works fine, and our problems are solved.
is working on a reply...