[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [more-list] and [data session arg]
>****** message to minivend-users from Jason Korkin
><jkorkin@korksoft.com> ******
>
>Mike and All:
> In looking at the Interpolate.pm module, I see something that might be
>a future addition... in the [more-list] tag, there is no way to pass a
>data session arg over to the ``next'' or ``previous'' page. Here is a
>little snip of the code (line 2847..2858).
>
>unless ($prev_anchor eq 'none') {
>$arg = $session;
>$arg .= ':';
>$arg .= $first - $chunk;
>$arg .= ':';
>$arg .= $first - 1;
>$arg .= ":$chunk:$mod";
>$list .= '<A HREF="';
>#$list .= vendUrl('search', $arg);
>$list .= vendUrl("scan/MM=$arg");
>$list .= '">';
>$list .= $prev_anchor;
>$list .= '</A>';
>
>I see that you're calling practically everything else, however, there is
>no carry over of the data session arg parameter! I'm currently working
>on getting it in here, but I haven't been in this module ever... Anyone
>have any pointers on getting the data session arg in there?
>
>Thanks,
>
>Jason Korkin.
>
>
To use data session arg I usually have a check at the top of the page that
saves it in a scratch variable if it is not empty. On other relevant pages
I then use the scratch var.
e.g.:
[if type="session" term="arg"]
[set name="dealer" interpolate=1][data session arg][/set]
[/if]
this way you won't have to mess with the code and don't get bitten by updates.
cheers, Frank
--
Frank Miedreich
Max-Planck-Institut fuer psychologische Forschung
Leopoldstr. 24 80802 Muenchen +49 89 38602-237