Hi. We've got an Umbraco instance on one server which acts as the admin for multiple websites. Then, on another server, we have an Umbraco instance for each of the websites. I've got distributed calls setup so that publishing a document in the admin reflects the change in the other Umbraco instances and this is working fine.
My question is is it possible to filter this out per site? So that the umbraco.config files in each website only contains content for that site (i.e. the homepage node and descendants for that hostname)?
You may be able to do it with action handlers setup on the target sites they would need to tap into onpublish action I am not certain though if at that point the document object that is passed into the action has a way of knowing its hostname setup? I am assuming host name has been set at root node that identifies the site however I am not certain if child nodes pick up the host name.
I don't think the Publish event handlers will fire on a dependent site, though, looking at the source I believe BeforeUpdateDocumentCache does fire.
This actually raises another question I had - is there a way to control which properies get added to the umbraco.config? If there is I can not add any nodes of ancestor X.
Distributed environment / Multiple sites
Hi. We've got an Umbraco instance on one server which acts as the admin for multiple websites. Then, on another server, we have an Umbraco instance for each of the websites. I've got distributed calls setup so that publishing a document in the admin reflects the change in the other Umbraco instances and this is working fine.
My question is is it possible to filter this out per site? So that the umbraco.config files in each website only contains content for that site (i.e. the homepage node and descendants for that hostname)?
Cheers
John,
You may be able to do it with action handlers setup on the target sites they would need to tap into onpublish action I am not certain though if at that point the document object that is passed into the action has a way of knowing its hostname setup? I am assuming host name has been set at root node that identifies the site however I am not certain if child nodes pick up the host name.
Regards
Ismail
I don't think the Publish event handlers will fire on a dependent site, though, looking at the source I believe BeforeUpdateDocumentCache does fire.
This actually raises another question I had - is there a way to control which properies get added to the umbraco.config? If there is I can not add any nodes of ancestor X.
is working on a reply...