Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Zoran] Simple If question

Quote Reply
Re: [Zoran] Simple If question In reply to
Yes, I don't know how much processing power it takes. I don't think it takes much, but I really don't know... One thing you could do to lessen it for categories with a lot of links is to exit the loop as soon as it counts more than 9 links:

<%set Link_Counter = 0%>
<%loop links_loop%>
<%set Link_Counter += 1%>
<%if Link_Counter > 9%>
<%lastloop%>
<%endif%>
<%endloop%>

That way if there were 20 links in there it wouldn't count all 20 but as soon as it got to 10 would stop the counting.

--Frank
Subject Author Views Date
Thread Simple If question Zoran 3135 Jun 27, 2004, 8:20 AM
Post Re: [Zoran] Simple If question
FrankM 3028 Jun 28, 2004, 12:15 PM
Thread Re: [Zoran] Simple If question
Andy 3032 Jun 29, 2004, 2:47 AM
Thread Re: [Andy] Simple If question
Zoran 2996 Jun 29, 2004, 9:04 AM
Thread Re: [Zoran] Simple If question
Andy 2996 Jun 29, 2004, 9:07 AM
Thread Re: [Andy] Simple If question
Zoran 3012 Jun 29, 2004, 9:37 AM
Thread Re: [Zoran] Simple If question
FrankM 2991 Jun 29, 2004, 11:42 AM
Thread Re: [FrankM] Simple If question
Zoran 2996 Jun 29, 2004, 2:06 PM
Thread Re: [Zoran] Simple If question
FrankM 2983 Jun 29, 2004, 2:19 PM
Post Re: [FrankM] Simple If question
Zoran 2961 Jun 30, 2004, 2:08 AM