[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [ic] using mml tags in area's selector field
dont know what the proper way to do this is, but this is how I
got it to allow me to limit to a particular grade of product:
1) make a copy of the bar_link subroutine from catalog_before.cfg into your
catalog.cfg
2) alter the code to input additional input parameters:
my ($base,$class,$extras) = split /\,/, $base;
($class is used for an anchor class on the last line of the sub to replace
the hard-coded one)
3) alter the LINK part of the routine for a complex link type:
elsif ($record->{link_type} eq 'complex') {
$search=$record->{search};
if ($extras eq 'grade'){
$search .= "\nsf=grade\nse=";
$search .= $Tag->scratch('grdtemp');
}
$search=~ s/[\r\n+]/\n/g;
$url = $Tag->area('scan', $search);
}
4) in the mml set the scratch var grdtemp to appropriate value eg. PRO
and call routine with [prefix-exec bar_link]table, class,grade[/prefix-exec]
- putting 'grade' in tells the routine to put additional search params in.
Jonathan.
-----Original Message-----
From: Doug Alcorn <doug@lathi.net>
To: interchange-users@minivend.com <interchange-users@minivend.com>
Date: 21 September 2000 15:05
Subject: [ic] using mml tags in area's selector field
>Again with my limited understanding, the actual link built is table
>driven from the area table. I think the table to be searched is in
>the 'tab' field and the selection criteria is set in the 'selector'
>field. What I would like to do is put additional selection criteria
>in that field. Specifically, I would like something like this:
>
>category=specific_category,addl_category=[scratch my_addl_category]
>
>I've tried this, and it doesn't work. It seems like my options are
>two: filter the matches out in the results page using and [if [scratch
>my_addl_category] eq [item-field addl_category]] tag; or to not use
>PREFIX-exec, loose the "dynamic" nature of table driven stuff and
>build my own links with a search profile and the [page] tag.
>
>What is the "Minivend Way" to handle this?
>--
_______________________________________________
Interchange-users mailing list
Interchange-users@www.minivend.com
http://www.minivend.com/mailman/listinfo/interchange-users