[ic] Does anyone have a fix for the Collapsable Vertical Category List component in 4.9.3

Andrew Brown interchange-users@icdevgroup.org
Mon Nov 11 21:55:00 2002


I would like to use this code thats in 4.9.3 but it doesn't work correctly.
When you click on the + sign in the results page, it comes up with this
error in the results.html page

Sorry, no matches for
Errors:
No search was found

For some reason its doing a search, which it should not.

Also the flypage doesn't work right either. When you click on the + sign it
shows interchange tags/code all over the flypage like [item-field category]
: [item-description] etc....

Anyone have a fix for this code? Here is the code

<!--- provided by Randy Moore <ramoore@axion-it.net> and Brendan
Crosser-McGay <brendan@paymentonline.com> --->

<tr><td align="left" class="categorybar">
  <br>
  <table width="90%" align="center" cellpadding=0 cellspacing=0 border=0>

<!-- BEGIN COMPONENT [control component category_vert_toggle] -->
[set found_cat][/set]
[loop
	prefix=box
	search="
		fi=area
		st=db
		tf=sort
		ac=0
		ac=0
		co=yes

		sf=sel
		op=eq
		se=[control set_selector left]

		sf=which_page
		op=rm
		se=[control page_class all|@@MV_PAGE@@]
"]

  <tr>
    <td valign="top" class="categorybar">
      [tmp holder][cgi cats][/tmp]
      [if scratch holder eq "[box-data area code]"]
        <a href="[process]?mv_action=refresh&cats=&mv_nextpage=index"
class="barlink"><font size="+1">-</font></a>
      [else]
        <a
href="[process]?mv_todo=refresh&mv_nextpage=@@MV_PAGE@@&cats=[box-data area
code]" class="barlink"><font size="+1">+</font></a>
      [/else]
      [/if]
      <b>&nbsp;[box-exec bar_link]area[/box-exec]</b>
    </td>
  </tr>
  <tr>
    <td valign="top" class="categorybar">
      [set found_cat]1[/set]
      [loop prefix=cat
	search="
		fi=cat
		st=db
		tf=sort
		tf=name
		rf=code,name
		sf=sel
		se=[box-code]
	"]
	[if scratch holder eq "[box-data area code]"]
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          [cat-exec bar_link]cat[/cat-exec]
          <br>
        [/if]
      [/loop]
    </td>
  </tr>

[/loop]
[if !scratch found_cat]
	<tr>
		<td class="categorybar">
[loop
    search="
        ra=yes
        tf=description
    "
    ]
      &nbsp;&nbsp;[page [loop-code]][loop-field description]</a><BR>
[/loop]
	  </td>
	</tr>
[/if]
  </table>
  <br>
</td></tr>

<!-- END COMPONENT [control component category_vert_toggle] -->