Akopia Akopia Services

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

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



******    message to minivend-users from jojo@buchonline.net     ******

On 24 Feb, Brent Worley wrote:
> ******    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

In some cases, it is not possible to use the above kind of codes with
some MV tags. The only fastest way to get any value or informations
from some MV tags is for example this:


[set name="Related" interpolate=1]item-field related][/set]
[set name="Size" interpolate=1]item-field size][/set]
[set name="Options" interpolate=1]item-field options][/set]

you can put this with 
[srcatch Related]
[srcatch Size]
[srcatch Options]

Make sure, you use this inside of [item-list]...[/item-list] for
exmaple.

Hope this helps,

	Joachim

-- 
Hans-Joachim Leidinger
buch online                 jojo@buchonline.net
Munscheidstr. 14            FAX: +49 209 1971449
45886 Gelsenkirchen         FAX: 0209 1671449

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