[ic] returning list of categories...properly

Joe Kupferling interchange-users@interchange.redhat.com
Mon Oct 15 10:53:17 2001


I'm working on a site where the user clicks on a product group on the
homepage, which does a page search and returns another page with a list of
categories for that product group.  I've played around with a variety of
different variables in the page search, but I don't seem to be getting
anywhere.  Although the categories are being returned, instead of getting
just one category, I'm getting all of them for a particular product group.
I don't profess to be any good at The Search Engine, so I'm hoping someone
can let me know what I'm missing.  The code I'm using on the home page to
initiate the page search is as follows:

[page search="
  se=Hand Tools
  sf=prod_group
  tf=category
  sp=results2
  "]
       Hand Tools
[/page]


On the results2 page, or the page that's being returned, I'm using the
following code:

[on-match]
<FORM ACTION="[area nothing]" METHOD=POST>
<input type=hidden name=mv_session_id value="[data session id]">
<INPUT TYPE=hidden  NAME="mv_action" VALUE="refresh">
<INPUT TYPE=hidden  NAME="mv_separate_items"  VALUE="0">
<INPUT TYPE=hidden  NAME="mv_click" VALUE="munge_quantity">
[/on-match]

<table width="90%" border="0" cellspacing="0" cellpadding="3">
<tr>
  <td colspan="6">&nbsp;</td>
</tr>

[search-list]

[item-change 1][condition][item-field prod_group][/condition]

<tr class="contentbar1">
  <td colspan="6">&nbsp;[either][value banner_text][or][item-field
prod_group][/either]</td>
</tr>

[/item-change 1]

<tr>
  <td colspan="6">
[page search="
  se=[item-field category]
  sf=category
"]
    [either][value banner_text][or][item-field category][/either]
[/page]
  </td>
</tr>

[/search-list]
</table>


Hoping someone can lend a quick hand.

Much thanks in advance,

Joe