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)
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.
Once created field display groups can be used in the following places:
- In Dynamicweb PIM as presets for the visible fields selector
- In frontend as custom field groupings, provided that use in frontend is checked on the group
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>
}