Field display groups

Field display groups are predefined groups of fields which can be used for the following purposes:

  • As presets in the Details view in PIM
  • As custom field groupings in frontend

To create a field display group:

  • Go to Settings > Ecommerce > Product Catalog > Field display groups
  • Click New in the toolbar (Figure 1.1)
Figure 1.1 Creating a field group

This opens the editing interface (Figure 1.2) which is used to define the field display group:

  • Enter a name
  • Include a number of fields by moving them from the left column to the to the right column
  • Select which shops/warehouses/channels the field display group should be available for
  • (Optional) Check use in frontend to make this group available in frontend
  • Save

Field display groups may be localized to other ecommerce languages by changing the language context in the toolbar.
Using the Permissions button in the toolbar, it is also possible to control which users have access to this specific field display group.

Figure 1.2 Creating a visible fields preset

Once created field display groups can be used in the following places:

In frontend they are availabel on the ProductViewModel:

RAZOR
@foreach (CategoryFieldViewModel group in Model.FieldDisplayGroups.Values) { <div><b>@group.Name</b></div> <ul> <li><b>ID:</b> @group.Id</li> <li><b>Fields:</b></li> <ul> @foreach (var field in group.Fields) { <li><b>@field.Key:</b> @field.Value.Value</li> } </ul> </ul> }