3 votes

uMediaSync

uMediaSync implemented an automatic one-way synchronization between content and media nodes within the CMS Umbraco backend.

It is often useful if the structure in the media section and content section is the same.  After installing a new media node is always created from the media type „Folder“ if a new content node was created. There is a configuration file in config folder. With this config file you can made any settings, such as add documenttypes to blacklist.

These are the possible settings of the config file:

syncFromContentRootNode:
NodeID of the start node in the content section, may be used to start the synchronization. All content nodes which are not located below this node, but above or next to it will not be synchronized.
Default: -1

syncToMediaRootNode
NodeID of the start node in media section, to which the start node of the content area (determined in syncFromContentRootNode) synchronized.
Default: -1

syncAllContent
Allowed values:
true: All nodes are always synchronized (blacklist will NOT be considered)
false: There are only synchronized nodes which are not excluded in the blacklist and which are not in a level equal to or below the value specified in the blacklist level.

renameMedia
Allowed values:
true: Media nodes are renamed automatically if the related content node is renamed.
false: The renaming of a content node has no effect on the related media nodes.

deleteMedia
Allowed values:
true: media node is moved to the recycle bin or deleted if the related content node is moved to the recycle bin or deleted.
false: The delete or move to the recycle bin of the content node has no effect to the related media node. This will continue exist.

docTypeAlias
Alias of the document type, which is not to be synchronized. It may be entered in config file several alias, but all in a single <docTypeAlias></docTypeAlias> tag. uMediaSync checks all alias recursively.

blackListLevel
Level of content section, from which no content nodes more to be synchronized.

 

Property „uMediaSyncHide“

There is another possibility to exclude individually single content nodes or even the whole branches from the synchronization: Adding a property with alias „uMediaSyncHide“ of datatype „true/false“ to your document type. If you check this property on a content node, this and all nodes under this are automatically excluded from synchronization!

 

Updated Version on nuget

There is an updated version on nuget:
https://github.com/east-sussex-county-council/Escc.Umbraco.MediaSync

Many thanks to @caterwomtious for updating and creating a nuget package!

Screenshots

Package owner

Sören Deger

Sören Deger

Sören has 2844 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions: 7.1.x

Package Information

  • Package owner: Sören Deger
  • Created: 10/07/2014
  • Current version 1.0
  • License MIT
  • Downloads on Our: 442

External resources