/// <summary>
 ///     Remove tags.
 /// </summary>
 /// <param name="content">The content item.</param>
 /// <param name="dataTypeService"></param>
 /// <param name="propertyTypeAlias">The property alias.</param>
 /// <param name="tags">The tags.</param>
 /// <param name="culture">A culture, for multi-lingual properties.</param>
 /// <param name="propertyEditors"></param>
 /// <param name="serializer"></param>
 public static void RemoveTags(
     this IContentBase content,
     PropertyEditorCollection propertyEditors,
     IDataTypeService dataTypeService,
     IJsonSerializer serializer,
     string propertyTypeAlias,
     IEnumerable <string> tags,
     string?culture = null) =>
 content.GetTagProperty(propertyTypeAlias)
 .RemoveTags(propertyEditors, dataTypeService, serializer, tags, culture);
Esempio n. 2
0
 /// <summary>
 /// Remove tags.
 /// </summary>
 /// <param name="content">The content item.</param>
 /// <param name="propertyTypeAlias">The property alias.</param>
 /// <param name="tags">The tags.</param>
 /// <param name="culture">A culture, for multi-lingual properties.</param>
 public static void RemoveTags(this IContentBase content, string propertyTypeAlias, IEnumerable <string> tags, string culture = null)
 {
     content.GetTagProperty(propertyTypeAlias).RemoveTags(tags, culture);
 }
Esempio n. 3
0
 /// <summary>
 /// Assign tags.
 /// </summary>
 /// <param name="content">The content item.</param>
 /// <param name="propertyTypeAlias">The property alias.</param>
 /// <param name="tags">The tags.</param>
 /// <param name="merge">A value indicating whether to merge the tags with existing tags instead of replacing them.</param>
 /// <param name="culture">A culture, for multi-lingual properties.</param>
 public static void AssignTags(this IContentBase content, string propertyTypeAlias, IEnumerable <string> tags, bool merge = false, string culture = null)
 {
     content.GetTagProperty(propertyTypeAlias).AssignTags(tags, merge, culture);
 }
 /// <summary>
 /// Assign tags.
 /// </summary>
 /// <param name="content">The content item.</param>
 /// <param name="dataTypeService"></param>
 /// <param name="propertyTypeAlias">The property alias.</param>
 /// <param name="tags">The tags.</param>
 /// <param name="merge">A value indicating whether to merge the tags with existing tags instead of replacing them.</param>
 /// <param name="culture">A culture, for multi-lingual properties.</param>
 /// <param name="propertyEditors"></param>
 public static void AssignTags(this IContentBase content, PropertyEditorCollection propertyEditors, IDataTypeService dataTypeService, IJsonSerializer serializer, string propertyTypeAlias, IEnumerable <string> tags, bool merge = false, string culture = null)
 {
     content.GetTagProperty(propertyTypeAlias).AssignTags(propertyEditors, dataTypeService, serializer, tags, merge, culture);
 }