diff --git a/uSync8.BackOffice/SyncHandlers/SyncHandlerRoot.cs b/uSync8.BackOffice/SyncHandlers/SyncHandlerRoot.cs index 63fa893f..1f53a815 100644 --- a/uSync8.BackOffice/SyncHandlers/SyncHandlerRoot.cs +++ b/uSync8.BackOffice/SyncHandlers/SyncHandlerRoot.cs @@ -576,6 +576,22 @@ virtual protected bool ShouldImport(XElement node, HandlerSettings config) return false; } } + + + // Ignore alias setting. + // if its set the thing with this alias is ignored. + var ignore = config.GetSetting("IgnoreAliases", string.Empty); + if (!string.IsNullOrWhiteSpace(ignore)) + { + var ignoreList = ignore.ToDelimitedList(); + if (ignoreList.InvariantContains(node.GetAlias())) + { + logger.Debug(handlerType, "Ignore: Item {alias} is in the ignore list", node.GetAlias()); + return false; + } + } + + return true; }