Hi there,
I created new Item type and would like to combine the products groups and indvidual links to blogs. On this new item type I added several paragraphs which I use to enter info and make it link to the blog and also several items of type "Product" which I would like to use to add product groups and render it as links to products groups so that user can have in one paragraph links to products and/or blogs as he wish.
Issue I am having is that even I add some product groups to Product item type when I try to access individual products-groups like this:
@foreach(var groups in @Model.Item.GetItems("Products2"))
I allways get error:
Exception in template (\Designs\Rapido\Paragraph\CombinedProdAndBlogs.cshtml): System.NullReferenceException: Object reference not set to an instance of an object."
I can access other elements on page like this: Model.Item.GetItem("Blogs_1").GetString("Link") but cannot get around to access linked products groups.
Thank you in advance!
Ivan