Prerequisites
To enable synchronization on an environment:
-
In the
WXM_Mediacore
plugin, set theisSynchroActive
parameter toyes
. -
Make sure the
mediasharing
object is present. -
In the objects to synchronize, add a field named
synchro
of typechild
on the current object.
We want to be able to synchronize the contents of the article object. In the structure of the article
object, add a field synchro
of type child on article’s object.
Operation
When synchronization is active on content, a button Propagate update
appears on the display screen
of this object.
This button is used to select:
-
the type of propagation
-
projects impacted by this update (only projects using the content are listed)
There are two ways to propagate an update:
imposition |
the update will directly propagate on the "whisper" versions of the content for the selected projects. |
proposal |
the update will only impact the "drop-down" versions of the content for selected projects when it is accepted. |
Security
It is possible to secure the different synchronization actions.
For example, it is possible:
-
authorize/prohibit the imposition or proposed update:
it will be necessary to act in the actionINSERT
of the domainOBJECTDATA
of the security. -
authorize/prohibit the acceptance or rejection of an update:
it will be necessary to act in theUPDATE
action of theOBJECTDATA
domain of the security.
To do this, it is sufficient to create the appropriate safety rules on the mediasharing
object whose context is synchro
.
⇒ The basis of the security rules will be therefore: lower(objectname) = 'mediasharing' AND object.context='synchro'.
To differentiate between the proposal and the imposition of an update, it will suffice to specify the type of mediasharing object.
⇒ The rules will have to be completed with: AND object.type='impose'
OR AND object.type='propose'