|
|
Rank: Newbie
Joined: 3/9/2007 Posts: 6
|
Hi There
I am curently implementing Umbraco for my organisation. I have a requirement to be able to add pages programaticaly from an external system like another intranet site, or desktop application.
I have tried to use the code provided on the umbraco site, but it doesnt seem to allow for the pointing of the library to another connection. For instance we may have 10 instances of Umbraco running, and one central news server. This news server obtains xml news feeds from various sources, and categorizes them and stores them in a database. The News system will then run a job that will create Umbraco News pages on each of the Umbraco sites, depending on the sites categorization. This will require the news job to connect to each of the Umbraco sites individualy and create pages on each site seperately.
Is this possible? Is it possible to assign a connection to the Umbraco Library.
Thanks in advance...
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 815 Location: Århus, Denmark
|
It sounds like something that would be nice to do with a webservice? Take a look at this thread. http://forum.umbraco.org/extending-umbraco/webservice-apiI think this is coming in V3 out of the box, but I'm not sure.
|
|
 Rank: Umbracoholic
Joined: 9/8/2006 Posts: 1,831 Location: MA, USA
|
Or, just reference your external database/news source from each umbraco site and let the site show the news dynamically rather than having an external system try to create pages inside each umbraco site. In other words, let each umbraco site gather information from outside, rather than having an outside process push pages into umbraco. There are a number of posts about getting to external data from umbraco. cheers, doug.
MVP 2007-2009 - Percipient Studios
|
|
Rank: Newbie
Joined: 3/9/2007 Posts: 6
|
Hi Guys
Thanks for the replies. I have tried the external system, and got it working, but the requirements of the project are; for the content users to be able to update the news articles through the umbraco content interface. This will allow us to maintain the umbraco functionality for updating content and maintaining user security info, such as group membership etc.
I basicaly use a webservice to get an XML feed from a news and content provider, this is categorized, so I would like to read through the feed, and based upon how the content is categorized, dynamicaly create a page in each umbraco system. This will allow the content editors to go through the new articles each day and make changes if needed, and then publish the content when they are ready. This is better than waiting for the users to get the feed and copy and paste it into a new page - if a content person is on leave or sick, the content from the feed will still be populated into umbraco. This is very important from an SEO point of view, as new content will be spidered and will aid in Google quality scores etc. So it must be an automated system.
I have most of the modules ready for implementation, the only issue I have is actualy getting the dynamic page creation working, I have used the code from the website - but I am struggling with getting it to work. For instance which Dll's do we referenece? I get connectionstring not present errors when referencing any dll's in the live sites. Can these dll's be referenced remotely? I cant seem to find a property that will allow me to set a connection string property within the umbraco dll's.
So basicaly the solution will take the form of a scheduled task which will run each night. I will get the content feed, and the cycle through it, creating pages in an umbraco system. Has anyone got any ideas on how to interact with the umbraco dll's from an external system not using user controls? Or am I able to do direct inserts into the umbraco database?
Thanks again Paul Scrooby
|
|
Rank: Newbie
Joined: 3/9/2007 Posts: 6
|
OK After trauling through obscure references to documentation I have managed to get part of my issue solved. I now have a webservice using the Document.MakeNew code to create a new page. I am able to connect to the correct umbraco database BUT I know have anothe rissue where the code on the Document.MakeNew line is throwing an Object not set to instance of an object error. I have copied the code verbatim from various sources but cannot for the life of me get it working - has anyone had an experience with getting tghis type of thing going?
Just for reference sake - my codde is running in a webservice in a virtual directory under the umbraco website.
Any help will be most appreciated!
Thanks
|
|
|
Guest |