Posted on 04/12/2025 09:53:05
Hi guys,
I have upgraded a local solution from DW 10.17 to DW10.21 and the menu started to display errors.
Specifically, the method GetProductGroup() is missing from NavigationTreeNodeViewModelExtensions.
It is used inside SwiftV2/Paragraph/Swift-v2_MenuRelatedContent/Menu.cshtml at line 23:
string GetGroupFieldValue(string fieldSystemName, NavigationTreeNodeViewModel node)
{
var productGroup = node.GetProductGroup();
string fieldValue = string.Empty;
if (productGroup.GroupFields is not null)
{
foreach (var field in productGroup.GroupFields)
{
if (field.SystemName == fieldSystemName)
{
fieldValue = field.Value?.ToString() ?? string.Empty;
}
}
}
return fieldValue;
}
Is this intended? Should I find a workaround or wait for a fix in the next version?
Thank you,
Adrian