API Reference: HelpTextAttribute Class
The HelpTextAttribute
can be applied to content model properties. The attribute sets the help text to display for the property in the user interface of the back office application.
The help text will appear as a line of italic text with a smaller font size directly below the property label and can be used to display a permanently visible hint for that specific property to the user.
You can also set a popup tooltip message with the TooltipAttribute
.
Usage
Decorate the content model property with the HelpTextAttribute
. Pass the help text in the attribute constructor.
The help text will be displayed even if the property label itself is hidden using the HideLabelAttribute
.
Example
[Page]
public class ContentPage: IContentType
{
[HelpText("Make sure the title is SEO-friendly.")]
public string PageTitle { get; set; }
}