[ic] How to Filter vertical category list to include selected product-groups?

Jon interchange-users@icdevgroup.org
Wed Jun 4 21:29:01 2003


>
>
> >    Here is a thought, but I'm sure there are better ideas....
> >Since the vertical component is searching through the area table
> >to build the list could you use one of the existing columns to
> >match ?  For example could you use the which_page column
> >and apply a different value depending on what you want to show
> >up and then modify the sf, op, and se values to match ?
> >Otherwise you may have to join the area and cat tables and work
> >from there.
>
> >Jon
>
> Thanks for your input, I think which_page is the right thing to do , I
> started to check the archives. I found this link which is close to what
> I want :
> http://www.icdevgroup.org/pipermail/interchange-users/2002-October/02736
> 4.html
>
> Here is the code for the area loop :
> [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@@]
> "]
>
> I changed the which_page column in my area table from (all) to have some
> records with entries STORE_A , some with STORE_B and some with STORE_C.
>
> Now is it correct that I have to set the MV_PAGE to right store in order
> to show the area for that store.. ??  and if so how do I set this via a
> link,??
>

    That link looks good and appropriate. I don't think the unanswered stuff

applies.

You might want to search through the documentation for MV_PAGE.
This is a global variable and set by something (no idea what), but the
documentation
says not to change it.  You may want to read that.  Oh heck, here is the
link :)
http://www.icdevgroup.org/cgi-bin/ic/docfly.html?mv_arg=icconfig04%2e58

I think what you'll want to do is change the 'all' to STORE_A, etc..
I would get a bit familiar with this page... I was so happy when some one
posted this:   http://www.interchange.rtfm.info/docs/frames/ictags_163.html

One thing I'm not sure about though. If you're trying to segregate products
between stores would you have a cross pollination problem using the
built in search facility... I don't know, but would be easy to test.

Also if you're trying to share the backend between multiple front ends
you might want to do a bit more searching.  This has been talked
about a couple of times. Here is one link that MAY be appropriate
http://www.icdevgroup.org/pipermail/interchange-users/2003-January/030798.html



Jon