[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[mv] Loop search - sub-categories - error if only 1 result
Minivend 3.15 - BSD - BerkleyDB
I use a loop search on my results page to create a list of links to
"sub-categories":
The way it works is that the customer clicks on "cables"
The result page will show a list of all "cable" sub-categories.
- scsi cables
- audio cables
- power cables
This works very well though the problem is that if there is only 1 result
i.e. "scsi cables" the list is displayed like this:
-scsi
-cables
and the links do not work as they should.
Any ideas why this is happening?
This within the results page:
Please choose a sub-category:<BR>
[loop search="
se=[value mv_searchspec]
sf=category
fi=computer.asc
ml=100
tf=subcat
rf=subcat
un=yes"]
<A HREF="[area scan
sf=subcat
tf=description
to=f,f
df=yes
ml=100
fi=computer.asc
se=[loop-code]]" CLASS="listlinks"><li><font face="Arial, Helvetica,
sans-serif" size="2" style="font-size:10pt">[loop-code]</font></li> [/loop]
This is the search method used before displaying the result page:
<FORM ACTION="[area search]" METHOD=POST name = "form">
<TR>
<TD ALIGN="LEFT" VALIGN="MIDDLE">
<INPUT TYPE="hidden" NAME="mv_search_field" VALUE="category">
<INPUT TYPE="hidden" NAME="mv_matchlimit" VALUE="20">
<INPUT TYPE="hidden" NAME="mv_search_file" VALUE="computer">
<INPUT TYPE="hidden" NAME="mv_sort_field" VALUE="description">
<INPUT TYPE="hidden" NAME="mv_sort_option" VALUE="f,f">
<select name="mv_searchspec">
<option value="Cable">Cables
<option value="Case">Computer Cases
<option value="Card">Controller Cards
<option value="CPU">CPU
</select>
</TD>
<TD><input type="submit" name="mv_todo" value="Browse"></TD>
_______________________________________________
Minivend-users mailing list
Minivend-users@minivend.com
http://www.minivend.com/mailman/listinfo/minivend-users