MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Flypage broken with arg



******    message to minivend-users from Ken Berland <ken@hero.com>     ******

i think flypage does some internal magic with the args, like parsing them
and doing a search before it hits the page.
You might try adding links like:
[area myFlypage code=[item-code] extra=foo]
then parse the code and extra arguments with some perl:
[set name="arg-input" interpolate=1][data session arg][/set]
[perl arg=scratch]
my($input)=$Safe{scratch}{'arg-input'};
if ($input=~/code=(\w+)/){
	$Safe{scratch}{'my-code'}=$1;
}
 if ($input=~/extra=(\w+)/){
        $Safe{scratch}{'my-extra'}=$1;  
}
}

then do a [loop search="..."] to find the item and display it.

(or something like that, the code above is untested and hand typed...)

On Wed, 22 Dec 1999, Christopher P.
Lindsey wrote:
}    
> ******    message to minivend-users from "Christopher P. Lindsey" <lindsey@mallorn.com>     ******
> 
> I sent mail about this earlier this week, but someone found a work-around
> for the situation that required it...
> 
> Now I'm finding that I'd like to track a lot more information, so I'd
> rather get this to work.
> 
> On to the problem...
> 
> If I add an argument to the URL of any flycat page the item will fail to
> be found.   For example:
> 
>    http://www.minivend.com/cgi-bin/simple/21-221?A2PpW96s;;56
> 
> works just fine, but adding *any* argument results in a failed lookup:
> 
>    http://www.minivend.com/cgi-bin/simple/21-221?A2PpW96s;a;56
> 	                                                       ^
> Is it just not possible to have an argument in flypage?  I've looked every
> place that I can think of and couldn't find anything about this specific
> problem, and I'm getting desperate...  Help!  :)
> 
> Thanks,
> 
> Chris
> -
> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
> 

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list



Search for: Match: Format: Sort by: