Completes: U4-3052 Create TagsService
This commit is contained in:
@@ -528,6 +528,21 @@ namespace Umbraco.Core.Models
|
||||
|
||||
#region Tag methods
|
||||
|
||||
///// <summary>
|
||||
///// Returns the tags for the given property
|
||||
///// </summary>
|
||||
///// <param name="content"></param>
|
||||
///// <param name="propertyTypeAlias"></param>
|
||||
///// <param name="tagGroup"></param>
|
||||
///// <returns></returns>
|
||||
///// <remarks>
|
||||
///// The tags returned are only relavent for published content & saved media or members
|
||||
///// </remarks>
|
||||
//public static IEnumerable<ITag> GetTags(this IContentBase content, string propertyTypeAlias, string tagGroup = "default")
|
||||
//{
|
||||
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// Sets tags for the property - will add tags to the tags table and set the property value to be the comma delimited value of the tags.
|
||||
/// </summary>
|
||||
|
||||
12
src/Umbraco.Core/Models/TaggableObjectTypes.cs
Normal file
12
src/Umbraco.Core/Models/TaggableObjectTypes.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace Umbraco.Core.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum representing the taggable object types
|
||||
/// </summary>
|
||||
public enum TaggableObjectTypes
|
||||
{
|
||||
Content,
|
||||
Media,
|
||||
Member
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user