Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Paul] Solution for 3 column links

Quote Reply
Re: [Paul] Solution for 3 column links In reply to
In Reply To:
Just a minor alteration...in the return statement you could change the first " to q| and the last to |; to save escaping the other "'s and you could use "x 2" ...eg

if ( $num % 3 ) {
return q|<TD width="200">&nbsp;</TD>| x 2;
} else {
return q|<TD width="200">&nbsp;</TD>|;
}


Cool - I'll change that now.

Can you see a way to change it so the html is in the template instead of the global? So it's something like...

Code:
<%if finishcolumns($row_num)%>
DISPLAY 2 COL HTML
<%else%>
DISPLAY 1 COL HTML
<%endif%>

I can't seem to get it working right when i try it.

regan.
Subject Author Views Date
Thread Solution for 3 column links ryel01 1991 Jun 14, 2002, 4:31 PM
Thread Re: [ryel01] Solution for 3 column links
Paul 1958 Jun 14, 2002, 4:35 PM
Thread Re: [Paul] Solution for 3 column links
ryel01 1954 Jun 14, 2002, 4:48 PM
Post Re: [ryel01] Solution for 3 column links
Paul 1944 Jun 15, 2002, 2:29 AM