Class GroupInfoViewModel
- Namespace
- Dynamicweb.Ecommerce.ProductCatalog
- Assembly
- Dynamicweb.Ecommerce.dll
Represents a lightweight reference to a product group, used when only the group identity and navigation metadata are needed.
public class GroupInfoViewModel : FillableViewModelBase
- Inheritance
-
GroupInfoViewModel
- Derived
- Inherited Members
- Extension Methods
Remarks
GroupInfoViewModel is used for collections such as ProductViewModel.PrimaryGroup and
ProductViewModel.Groups where loading the full ProductGroupViewModel for every group
would be expensive. Use GetGroup(GroupInfoViewModel) to load the full group view model
on demand, or GetGroupLink(GroupInfoViewModel, int, bool) to build the group navigation URL.
Properties
Id
Gets or sets the unique identifier of the product group (e.g. "GROUP1").
public virtual string Id { get; set; }
Property Value
Name
Gets or sets the display name of the product group.
public virtual string Name { get; set; }
Property Value
PrimaryPageId
Gets or sets the ID of the CMS page designated as the primary landing page for this group.
Used by GetGroupLink(GroupInfoViewModel, int, bool) to build the group URL.
Is 0 when no primary page is configured.
public virtual int PrimaryPageId { get; set; }
Property Value
Sorting
Gets or sets the sort order of this group relative to the product it belongs to.
Stored in [EcomGroupProductRelation].[GroupProductRelationSorting].
May be null if no explicit sort order is defined.
public virtual int? Sorting { get; set; }
Property Value
- int?