Akopia Akopia Services

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

Interpolate problems WAS( [mv] Search value as an argument)



******    message to minivend-users from "Brent Worley" <brent@12ave.com>     ******

Ed and others,

Well, what I ended up with was a field in the database that had the
information I needed.  However, I have run into the following problem:

On the search results page I only want certain things displayed if the
database fields contain information.  I implemented perl code to dump the
database fields in a variable as a string (I have done this before, hence
why this troubles me.)  However, even with interpolate set it will not
evaluate the item-field.  Here is the code I have:


[perl arg=value interpolate=1]
  $Safe{'values'}{'Related'}='[item-field related]';
  $Safe{'values'}{'Size'}='[item-field size]';
  $Safe{'values'}{'Options'}='[item-field options]';
  return '';
[/perl]

When I put a [value Related] on the results page, the output was [item-field
related].  The same happened with both the Size and Options variables.  I
have done this with other scripts of similar nature, but for some reason
this one alludes me.  I have even gone to the trouble of purposely putting a
syntax error in the script just to see what the error.log file was
reporting.

Any answers to this problem would be helpful.

Brent


-----Original Message-----
From: owner-minivend-users@minivend.com
[mailto:owner-minivend-users@minivend.com]On Behalf Of Dan Busarow
Sent: Thursday, February 24, 2000 11:08 AM
To: minivend-users@minivend.com
Subject: RE: [mv] Search value as an argument


******    message to minivend-users from Dan Busarow <dan@dpcsys.com>
******

On Thu, 24 Feb 2000, Brent Worley wrote:
> Actually, this does exactly the opposite of what I want it to do.  =)
>
> It did give me the idea to try this, however it did not work:
>
> [perl interpolate=1]
>   $Safe{'Session'}->{arg} = '[value mv_searchspec]';
> [/perl]
>
> I don't think this is correct syntax though.  I've seen pulling the
> arguments down for a search, but I have not seen any answers on how to use
> mv_searchspec to produce the arguments in the URL.

Could you give an example of what you want to do?  You asked how to
extract an argument from a URL.  To use an mv var as an argument

[page href="products" arg="[item_data models code]"]

substitute [value mv_searchspec] for item_data above.

Dan
--
 Dan Busarow                                                  949 443 4172
 Dana Point Communications, Inc.                            dan@dpcsys.com
 Dana Point, California  83 09 EF 59 E0 11 89 B4   8D 09 DB FD E1 DD 0C 82

-
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: