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 3745 Jun 27, 2004, 8:20 AM
Post Re: [Zoran] Simple If question
FrankM 3626 Jun 28, 2004, 12:15 PM
Thread Re: [Zoran] Simple If question
Andy 3631 Jun 29, 2004, 2:47 AM
Thread Re: [Andy] Simple If question
Zoran 3597 Jun 29, 2004, 9:04 AM
Thread Re: [Zoran] Simple If question
Andy 3594 Jun 29, 2004, 9:07 AM
Thread Re: [Andy] Simple If question
Zoran 3611 Jun 29, 2004, 9:37 AM
Thread Re: [Zoran] Simple If question
FrankM 3601 Jun 29, 2004, 11:42 AM
Thread Re: [FrankM] Simple If question
Zoran 3594 Jun 29, 2004, 2:06 PM
Thread Re: [Zoran] Simple If question
FrankM 3583 Jun 29, 2004, 2:19 PM
Post Re: [FrankM] Simple If question
Zoran 3561 Jun 30, 2004, 2:08 AM