Gossamer Forum
Home : Products : Gossamer Links : Discussions :

sub sub categories

Quote Reply
sub sub categories
Hi,
we are running an Online Shop with LinksSQL.
http://www.masterb2b.de
Now I am trying to sort Products within one
Category by Company e.g. 17" monitors from LG, FSC etc. Obviously this is no problem with the sort
function. What I would like to do is print a headline
before a new Comapny starts:
LG:
1.
2.
3. ...
FSC
1.
2.
3.

Therefor I was looking for something to identify
the last link. I think there must be a very easy way
because the next/previous link is already
implemented in the detailed function.
If I have the information of the last link
I could do something like:
If Company of the last like is not like Company print headline of Company.
If anyone already uses this feature it would be
nice to get a hint.

Ciao

Niko
Quote Reply
Re: [el noe] sub sub categories In reply to
Hi,

You can look at using:

<%loop links_results_loop%>
...
<%endloop%>

to loop through all the links. Inside the loop you can use:

<%row_num%> - the row number
<%first%> - true if it is the first row
<%last%> - true if it is the last row
<%even%> - true if it's an even row (useful for alternating colors).

Hope that helps,

Alex
--
Gossamer Threads Inc.