Attributes in topic
Eröffnet von
Yoram
, Apr 04 2022 03:29
3 Antworten zu diesem Thema
#2
Geschrieben: 04 April 2022 - 20:24
Yes. The attributes are saved as GenericAttributes (with GenericAttribute.KeyGroup = "Topic") and can be loaded via IGenericAttributeService, for example.
- GalenKa, RidgeOi und Yoram gefällt das
Marcus Gesing
Smartstore AG
#4
Geschrieben: 29 April 2022 - 20:01
@{ var topicId = 1; var genericAttributeService = this.CommonServices.Resolve<SmartStore.Services.Common.IGenericAttributeService>(); var attributes = genericAttributeService.GetAttributesForEntity(topicId, "Topic"); } @foreach (var attribute in attributes) { <div>Key: @(attribute.Key). Value: @(attribute.Value).</div> }
- GalenKa gefällt das
Marcus Gesing
Smartstore AG