Hi,
I'm having some issues using the ProductGroupSlider in Swift 2. I'm just trying to use it to show SelectedGroups. I use the standard Swift2 templates. The one used for this item is "Swift-v2_ProductGroupSlider.cshtml" in Paragrahs. I've selected 2 groups. Nothing is rendered. To confirm that there was actually something selected I rendered this:
<h1>@Model.Item.GetString("SelectedGroups")<h1>
It renderes "g_GROUP2,g_GROUP3".
So far so good. Then I had to check if the code in the template actually gets the groups (you have a GetGroups function in the template). It doesn't. In your template you have:
IList<ProductGroupViewModel> groups = Model.Item.GetValue<IList<ProductGroupViewModel>>("SelectedGroups");
"groups" is just null in this case even though the "SelectedGroups" has a value. I'm just working with some dummy groups I've created for testing purposes. I've added 6 products to each group. Am I missing something here?