Class ProductGroupViewModel
- Namespace
- Dynamicweb.Ecommerce.ProductCatalog
- Assembly
- Dynamicweb.Ecommerce.dll
Represents a fully populated product group, extending GroupInfoViewModel with SEO metadata, custom fields, and media assets.
public class ProductGroupViewModel : GroupInfoViewModel
- Inheritance
-
ProductGroupViewModel
- Inherited Members
- Extension Methods
Remarks
ProductGroupViewModel is the model for the current group when browsing
a product catalog — available as Model.Group on a ProductListViewModel.
Sub-groups are exposed as Model.SubGroups. Use GroupInfoViewModelExtensions
to navigate the hierarchy and build group links.
Properties
Assets
Gets or sets the media assets (images, documents) attached to this product group. null when not requested via ProductGroupViewModelSettings. Use MediaViewModelExtensions to resolve assets as images, files, or videos.
public IList<MediaViewModel> Assets { get; set; }
Property Value
CategoryName
Gets or sets the localised display name of the product category this group belongs to.
public string CategoryName { get; set; }
Property Value
CategorySystemName
Gets or sets the stable system name of the product category this group belongs to
(e.g. "Clothing"). Use for conditional template logic or CSS class names.
public string CategorySystemName { get; set; }
Property Value
Clickable
Gets or sets a value indicating whether this group node is rendered as a clickable link in navigation. false means the group is a non-linkable heading in the menu.
public bool Clickable { get; set; }
Property Value
Description
Gets or sets the HTML description of the group, suitable for rendering as body text on a category page.
public string Description { get; set; }
Property Value
GroupFields
Gets or sets the custom field values attached to this product group. null when not requested via settings.
public IList<FieldValueViewModel> GroupFields { get; set; }
Property Value
Id
Gets or sets the unique identifier of the product group (e.g. "GROUP1").
public override string Id { get; set; }
Property Value
MetaCanonical
Gets or sets the canonical URL for the group page (e.g. "/men/clothing").
Used in the <link rel="canonical"> tag to prevent duplicate-content issues.
public string MetaCanonical { get; set; }
Property Value
MetaDescription
Gets or sets the meta description for the group, rendered in the <meta name="description"> tag.
public string MetaDescription { get; set; }
Property Value
Name
Gets or sets the localised display name of the product group (e.g. "Men's Clothing").
public override string Name { get; set; }
Property Value
Number
Gets or sets the internal number or code identifying the group (e.g. "GRP-001").
public string Number { get; set; }
Property Value
ShowInMenu
Gets or sets a value indicating whether this group should appear in navigation menus.
public bool ShowInMenu { get; set; }
Property Value
Title
Gets or sets the SEO page title for the group. Often the same as Name but can be overridden in the backend.
public string Title { get; set; }