Gossamer Forum
Quote Reply
Loop Position X
    <%row_num%> - a counter for what row is being looped, starts at 1.
<%rownum%> - an alias for <%row_num%>
<%first%> - boolean value that is true if this is the first row, false otherwise.
<%last%> - boolean value that is true if this is the last row, false otherwise.
<%inner%> - boolean value that is true if this is not first and not last.
<%even%> - boolean value is true if row_num is even.
<%odd%> - boolean value is true if row_num is odd.

Inside a loop i can use this; with rownum i can do something like:

loop ...
if rownum eq 4
do something

How i can choose from the array directly without a loop?
Quote Reply
Re: [Robert] Loop Position X In reply to
<%loop_name.4%>

Where 4 is the position starting from 0.

Adrian
Quote Reply
Re: [brewt] Loop Position X In reply to
I am talking about <%title_loop%>; this array holds Name and URL?

Last edited by:

Robert: Mar 7, 2010, 1:05 PM
Quote Reply
Re: [Robert] Loop Position X In reply to
<%if title_loop.3.URL%>...show it here<%endif%>

..or

<%if title_loop.3.Name%>...show it here<%endif%>

etc

Hope that helps.

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Loop Position X In reply to
If I have loop like "aaa,sss,ddd,fff,ggg,hhh,jjj,kkk,lll" is there a way to run the loop start form the "ggg" and not form the "aaa", is there a way that the loop not start form the first but form the ten
I try this one <%loop select_loop.5%> <%Title%> <%endloop%> but it didn't work
Quote Reply
Re: [nir] Loop Position X In reply to
<%loop the_loop%>
<%if row_num >= 5%> show it <%endif%>
<%endloop%>

..should do it.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Loop Position X In reply to
Thanks,Smile