Developer forum

Forum » Templates » Request Loop Counter inside Related Product Loop

Request Loop Counter inside Related Product Loop

Daniel Arribas
Reply

Hi,

Is there a Tag that available for this loop <!--@LoopStart(RelatedProducts)--><!--@LoopEnd(RelatedProducts)-->?

If I use this TAG <!--@Products.LoopCounter-->, Dynamicweb shows the loop counter value for <!--@LoopStart(Products)--><!--@LoopEnd(Products)-->

Best Regards


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Daniel

Not sure I understand your question.

if you want to check for empty loops, that is part of the loop syntax found here: http://templates.dynamicweb.com/TemplateTags/Dynamicweb-template-tags/General-tags/Loops.aspx

Look for EmptyLoopStart and EmptyLoopEnd.

You can also use LoopDefined http://templates.dynamicweb.com/TemplateTags/Dynamicweb-template-tags/General-tags/If-LoopDefined.aspx

Votes for this answer: 1
 
Daniel Arribas
Reply

Hi Nicolai,

Sorry I mean that I need the LoopCounter Tag for the Loop <!--@LoopStart(RelatedProducts)--><!--@LoopEnd(RelatedProducts)-->

Thanks

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Daniel

That is also described in the documentation link above...

Votes for this answer: 1
 
Daniel Arribas
Reply

Perfect, using  <!--[LoopName].LoopCounter--> works fine

Thanks for your help

 

You must be logged in to post in the forum