Hi. I'm trying to get this 3 column link stuff done. I have the following code;
<%if links%>
<!--BEGIN 3-COL LINK LOOP-->
<%loop links_loop%>
<%if TypeOfDetailed eq "Galleries"%>
<%if first%> <%-- set up the opening table --%>
<TABLE>
<TR>
<%endif%>
<TD>
<%include link.html%>
</TD>
<%ifnot row_num % 3%> <%-- close the row --%>
</TR>
<%endif%>
<%if last%> <%-- close the table --%>
<%if row_num % 3 eq 1%> <%-- balance the trailing rows --%>
<TD></TD><TD></TD>
<%endif%>
<%if row_num % 3 eq 2 %> <%-- balance the trailing rows --%>
<TD></TD>
<%endif%>
</tr>
</TABLE>
<%endif%>
<%else%>
<%include link.html%>
<%endif%>
<%endloop%>
<%endif%>
If I remove the bits in red, it gets rid of the 'extra else statement' error.
Can anyone see what I'm missing?
TIA.
Andy
Code:
<!-- Links in this category. --> <%if links%>
<!--BEGIN 3-COL LINK LOOP-->
<%loop links_loop%>
<%if TypeOfDetailed eq "Galleries"%>
<%if first%> <%-- set up the opening table --%>
<TABLE>
<TR>
<%endif%>
<TD>
<%include link.html%>
</TD>
<%ifnot row_num % 3%> <%-- close the row --%>
</TR>
<%endif%>
<%if last%> <%-- close the table --%>
<%if row_num % 3 eq 1%> <%-- balance the trailing rows --%>
<TD></TD><TD></TD>
<%endif%>
<%if row_num % 3 eq 2 %> <%-- balance the trailing rows --%>
<TD></TD>
<%endif%>
</tr>
</TABLE>
<%endif%>
<%else%>
<%include link.html%>
<%endif%>
<%endloop%>
<%endif%>
If I remove the bits in red, it gets rid of the 'extra else statement' error.
Can anyone see what I'm missing?

TIA.
Andy