You have basically 2 options. - Either you create an observer that would listen to changes in data on public and when it detects any it would notify author to update the data (alternatively you can have code that is changing data on public directly notify the author instance). In this case you would have to write receiver end on author instance as well. Probably as custom servlet registered in filter chain. If you go for this be careful to not end up in recursive calls if your observer reacts also to changes pushed from author and pushing them back. - or you create a partial cluster and share data between author and public instances. In this case you don't need to ever activate the data, since both author and public would be using the same. Drawback here is bit more complicated configuration/maintenance and the fact that you have ever only one copy of the data, so you should take real care of backup/restore procedures to be able to recover in case something ever goes wrong.
HTH, Jan On Oct 3, 2012, at 2:43 PM, Terry Roberts (via Magnolia Forums) <[email protected]> wrote: > If I wanted to create a shop application with product items > existing under the data node and each product item would have an attribute > called "quantity on hand". This attribute can be updated on the author site > and then published to the public site. On the public site I can > programmatically update the > quantity. However, how do I go about synchronizing the author stage with the > public stage? > Whats the general approach I can take to do this? any examples ? cheers. > > -- > Context is everything: > http://forum.magnolia-cms.com/forum/thread.html?threadId=fe931336-09a1-4e66-955c-c34a8da692f8 > > > ---------------------------------------------------------------- > For list details, see http://www.magnolia-cms.com/community/mailing-lists.html > Alternatively, use our forums: http://forum.magnolia-cms.com/ > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
