Hello,
I'm trying to add a loop in the pagetemplateextender, but it doesn't seem to work.
Here is my code :
var productLoop = template.GetLoop("ImageBankProducts");
foreach (var product in products)
{
productLoop.SetTag("ProductID", product.ProductID);
productLoop.SetTag("ProductName", product.ProductName);
productLoop.SetTag("ProductImageGUID", product.ImageGUID);
productLoop.SetTag("ProductFilterIds", product.FilterIds);
productLoop.CommitLoop();
}
The loop is available in the page (I get the template tag), but it seems empty, even though if I log it shows that I iterate the foreach loop several times and that every tag I put has a value. I'm probably missing something very simple but I can't see it...
Do you have any idea ?
Thank you.