Defines the base for a ContentType with properties that are shared between ContentTypes and MediaTypes.
Namespace: Umbraco.Cms.Core.Models Assembly: Umbraco.Core.dll Syntaxpublic interface IContentTypeBase : IUmbracoEntity, ITreeEntity, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Properties View Source Alias
Gets or Sets the Alias of the ContentType
Declarationstring Alias { get; set; }
Property Value Type Description System.String View Source AllowedAsRoot
Gets or Sets a boolean indicating whether this ContentType is allowed at the root
Declarationbool AllowedAsRoot { get; set; }
Property Value Type Description System.Boolean View Source AllowedContentTypes
Gets or Sets a list of integer Ids of the ContentTypes allowed under the ContentType
DeclarationIEnumerable<ContentTypeSort>? AllowedContentTypes { get; set; }
Property Value View Source Description
Gets or Sets the Description for the ContentType
Declarationstring Description { get; set; }
Property Value Type Description System.String View Source Icon
Gets or sets the icon for the content type. The value is a CSS class name representing the icon (eg. icon-home
) along with an optional CSS class name representing the color (eg. icon-blue
). Put together, the value for this scenario would be icon-home color-blue
. If a class name for the color isn't specified, the icon color will default to black.
string Icon { get; set; }
Property Value Type Description System.String View Source IsElement
Gets or sets a value indicating whether this content type is for an element.
Declarationbool IsElement { get; set; }
Property Value Type Description System.Boolean View Source ListView
Gets or Sets a Guid, which is the key of the listview.
DeclarationGuid? ListView { get; set; }
Property Value Type Description System.Nullable<Guid> View Source NoGroupPropertyTypes
Gets or sets the local property types that do not belong to a group.
DeclarationIEnumerable<IPropertyType> NoGroupPropertyTypes { get; set; }
Property Value View Source PropertyGroups
Gets or sets the local property groups.
DeclarationPropertyGroupCollection PropertyGroups { get; set; }
Property Value View Source PropertyTypes
Gets all local property types all local property groups or ungrouped.
DeclarationIEnumerable<IPropertyType> PropertyTypes { get; }
Property Value View Source Thumbnail
Gets or Sets the Thumbnail for the ContentType
Declarationstring Thumbnail { get; set; }
Property Value Type Description System.String View Source Variations
Gets or sets the content variation of the content type.
DeclarationContentVariation Variations { get; set; }
Property Value Methods View Source AddPropertyGroup(String, String)
Adds a property group with the specified name
and alias
.
bool AddPropertyGroup(string alias, string name)
Parameters Type Name Description System.String alias
The alias.
System.String nameName of the group.
Returns Type Description System.BooleanReturns true
if a property group with specified alias
was added; otherwise, false
.
Adds a PropertyType, which does not belong to a PropertyGroup.
Declarationbool AddPropertyType(IPropertyType propertyType)
Parameters Returns Type Description System.Boolean
Returns True
if PropertyType was added, otherwise False
Adds the property type to the specified property group (creates a new group if not found and a name is specified).
Declarationbool AddPropertyType(IPropertyType propertyType, string propertyGroupAlias, string propertyGroupName = null)
Parameters Type Name Description IPropertyType propertyType
The property type to add.
System.String propertyGroupAliasThe alias of the property group to add the property type to.
System.String propertyGroupNameThe name of the property group to create when not found.
Returns Type Description System.BooleanReturns true
if the property type was added; otherwise, false
.
Moves a PropertyType to a specified PropertyGroup
Declarationbool MovePropertyType(string propertyTypeAlias, string propertyGroupAlias)
Parameters Type Name Description System.String propertyTypeAlias
Alias of the PropertyType to move
System.String propertyGroupAliasAlias of the PropertyGroup to move the PropertyType to
Returns Type Description System.Boolean View Source PropertyTypeExists(String)Checks whether a PropertyType with a given alias already exists
Declarationbool PropertyTypeExists(string alias)
Parameters Type Name Description System.String alias
Alias of the PropertyType
Returns Type Description System.BooleanReturns True
if a PropertyType with the passed in alias exists, otherwise False
Removes a property group from the current content type.
Declarationvoid RemovePropertyGroup(string alias)
Parameters Type Name Description System.String alias
Alias of the PropertyGroup to remove
View Source RemovePropertyType(String)Removes a PropertyType from the current ContentType
Declarationvoid RemovePropertyType(string alias)
Parameters Type Name Description System.String alias
Alias of the IPropertyType to remove
View Source SupportsPropertyVariation(String, String, Boolean)Validates that a combination of culture and segment is valid for the content type properties.
Declarationbool SupportsPropertyVariation(string culture, string segment, bool wildcards = false)
Parameters Type Name Description System.String culture
The culture.
System.String segmentThe segment.
System.Boolean wildcardsA value indicating whether wildcard are supported.
Returns Type Description System.BooleanTrue if the combination is valid; otherwise false.
View Source SupportsVariation(String, String, Boolean)Validates that a combination of culture and segment is valid for the content type.
Declarationbool SupportsVariation(string culture, string segment, bool wildcards = false)
Parameters Type Name Description System.String culture
The culture.
System.String segmentThe segment.
System.Boolean wildcardsA value indicating whether wildcard are supported.
Returns Type Description System.BooleanTrue if the combination is valid; otherwise false.
View Source ToSimple()Gets an ISimpleContentType corresponding to this content type.
DeclarationISimpleContentType ToSimple()
Returns
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4