Frontend development

Sections and views

You can specify where the properties are displayed. Sitefinity CMS support the following levels of differentiation:

  • By views
    You can specify whether the properties are displayed in the main view (basic) or in the advanced view. If you do not specify anything, the property appears in the basic view. This way, you can place in the advanced view properties that requires more technical knowledge or are rarely used.
  • By section
    You can use this attribute to group the properties in sections inside the view and provide expand and collapse capability.

The following code sample, moves the first property to the advanced section and puts the second property in a particular section:

C#
[Category("Advanced")]
public bool AdvancedPropertyWithoutSection { get; set; }

[ContentSection("Separate collapsed section title.")]
public bool SeparateSectionProperty { get; set; }
Want to learn more?
Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.
New to Sitefinity?