I'm struggling to debug a simple loop in ePages back office. My knowledge of HTML is all self taught, copying and pasting bits of code from here and there, so I'm not too up on the finer points, but I'm not too bad.
This piece of code should show a list of items in three columns, but it is only showing a single column. I can't figure out what is wrong.
I don't understand what the setTLE function is doing and also where it gets #productcount from. I've tried displaying the #productcount variable, but it only shows as text.
Please help. It's doing my head in!
#LOOP(#Products )
#IF(#productcou nt EQ "0")
<TR>
<TD>
First column here
</TD>
<td>
#BEGIN
SetTLE("#produc tcount","1");
#END
#ELSE
#IF(#productcou nt EQ "1")
<TD>
Second column here
</TD>
<td>
#BEGIN
SetTLE("#produc tcount","2");
#END
#ELSE
<TD>
Third column here
</TD>
</tr>
<td>
#BEGIN
SetTLE("#produc tcount","0");
#END
#ENDIF
#ENDIF
#ENDLOOP
This piece of code should show a list of items in three columns, but it is only showing a single column. I can't figure out what is wrong.
I don't understand what the setTLE function is doing and also where it gets #productcount from. I've tried displaying the #productcount variable, but it only shows as text.
Please help. It's doing my head in!
#LOOP(#Products )
#IF(#productcou nt EQ "0")
<TR>
<TD>
First column here
</TD>
<td>
#BEGIN
SetTLE("#produc tcount","1");
#END
#ELSE
#IF(#productcou nt EQ "1")
<TD>
Second column here
</TD>
<td>
#BEGIN
SetTLE("#produc tcount","2");
#END
#ELSE
<TD>
Third column here
</TD>
</tr>
<td>
#BEGIN
SetTLE("#produc tcount","0");
#END
#ENDIF
#ENDIF
#ENDLOOP
Comment