This type contains the following members.

public interface IContentPropertyAttribute

Methods

Apply(ContentPropertyDefinition)

Implemented by

AcceptMediaTypeAttribute Specifies the media types that are accepted for file uploads for this property. Can only be set on IFileDescriptor (derived) property types.
AllowContentTypeAttribute Indicates which content view models are allowed to be added to this property.
CheckboxAttribute Uses a checkbox editor for this property in the Redakt back office.
ColorEditorAttribute Renders a color editor for this property.
CultureDependentAttribute Specifies that this property has separate values per culture, instead of a single value for all cultures. This attribute overwrites any previous settings for linkable cultures.
CurrencyAttribute
DateTimeEditorAttribute Renders a date/time editor for this property. If the style is not set, the editor only allows date selection (without time) by default.
DefaultValueAttribute Sets the default value for the property editor in the Redakt back office if the value is undefined.
DisplayNameAttribute Sets the label for the property editor in the Redakt backoffice. If omitted, the label will be generated from the property name.
DisplayOnListAttribute Indicates that the value of the property will be displayed on the library list views in the Redakt back office. Only simple property types can have this attribute set.
DisplayOrderAttribute Sets the display order of the property in the back office user interface. Negative values are allowed. Default display order is 0 if not explicitly set. Properties with the same display order will maintain the order they have in the encapsulating class.
EditableForAttribute Sets the user groups that are allowed to edit this property in the back office. For any user that is not part of at least one of the provided user groups this property will be read-only.
EditorAttribute Specifies the editor component type to use for this property. This attribute overrides all automatic editor selection mechanisms.
EmbeddedAttribute Specifies that this property will be embedded into its master content. Can only be set on single content model (IContentType) based properties.
EnableLinkToCultureAttribute Specifies that the value of this property can be linked to another culture in the back office.
EnableLinkToNeutralCulture Specifies that the value of this property can be linked to the neutral culture of the currently selected culture in the back office.
ExpandedAttribute
GridViewAttribute
HelpTextAttribute Sets the help text that will be displayed below the property label in the Redakt backoffice. In contrast to TooltipAttribute, the help text will always be displayed, even when the label is hidden with HideLabelAttribute.
HideLabelAttribute Specifies that the property label should be hidden in the back office user interface. This can be useful for checkbox editors that have their own checkbox label.
IgnoreMemberAttribute Indicates that this property will be ignored by Redakt. It will not show up in the backoffice or be saved to the data store. This can be useful for computed properties that are only used in templates.
InlineAttribute Specifies that this property will be displayed inline with other properties with the same line name in the back office.
KeyAttribute Sets the unique key that is used to save the property value to the data store. This is useful if the property name has been changed, but content was already stored with the previous key. If omitted, the key is equal to the property name. Changing the key will lead to all previous values of this property being inaccessible.
LinkEditorAttribute
ListViewAttribute
MultilineAttribute Configures the editor as a multiline text box (textarea). Can only be applied to string properties (including HtmlString") />.
NodePickerAttribute Specifies that this property should use a node picker editor type. This editor type can only be set on string, IPublishedContent, or IContentType-derived properties (or collections thereof).
NumberEditorAttribute Indicates that this property is a number and should be rendered as a number editor in the back office.
PlaceholderAttribute Specifies a placeholder to display in case of empty property values. This attribute can be applied to most simple property types.
PrimaryMediaAttribute Specifies that this property is the primary media for the content type. This media will be used as thumbnail for the content in the back office, and as the upload target property for the default file upload handler (when used in combination with the FileUploadAttribute). Can only be set on IFileDescriptor property types. This attribute is only effective on content types with multiple file properties and does not need to be specified on content types with a single file property, as the single file property will be selected as the primary media property by default.
RadioGroupAttribute Renders a radio group editor for this property.
ReadOnlyAttribute Specifies that this is a read-only property. Editing the value will not be possible in the Redakt backoffice, however modifying the property can still be done from code.
RichTextEditorAttribute Uses a rich text (HTML) editor for this property. This is the default editor for HtmlString type properties.
RichTextEditorStylesAttribute Sets inline styles for the style dropdown of the rich text (HTML) editor. Has no effect on other editors. Add styles in the format "{displayLabel}|{cssStyle}|{className}". The class name is optional. If you set a class name, the css style is only used within the editor but not applied to the HTML content. If you omit a class name, the css style is used both for the editor and the HTML content. Example: "Extra padding|padding:1rem|p-md-3".
RichTextEditorToolbarAttribute Sets the toolbar features of the rich text (HTML) editor. Has no effect on other editors.
SearchIndexAttribute
SectionAttribute Specifies the section name that this property will be grouped under. If not specified, the property will be part of the default "Content" section.
SelectListAttribute Renders a select list editor for this property. Displays a multiple select list in case of a collection type, or a dropdown list otherwise. The option keys will be set as the property value. The member type may be string or any other simple type, provided the option key can be converted from string. Options can be set during compile-time by passing them in the constructor, or by passing an ISelectOptionsProvider type in the constructor to populate options during runtime.
SliderAttribute
TableEditorAttribute
TagsEditorAttribute Uses a tags editor for this property in the Redakt back office. Optionally supply a predefined tag list in the constructor or register an ISelectOptionsProvider implementation in the DI container to restrict available tags. If no predefined tags are supplied, the user can enter any value as tags.
TextEditorAttribute Configures the editor as a textbox. Can only be applied to string properties (including HtmlString") />.
ToggleAttribute Uses a checkbox editor for this property in the Redakt back office.
TooltipAttribute Sets the popup tooltip that will be displayed alongside the property label in the Redakt back office. The tooltip will not be rendered if the HideLabelAttribute is set.
WidthAttribute Specifies the width of the editor. The default editor width will be used if not set. This attribute applies to most editors.