MiniVend Akopia Services

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

Re: [mv] PERL: Interpolate question



Handytman@aol.com writes:

> ******    message to minivend-users from Handytman@aol.com     ******
> 
> Thanks very much for your help with that. I did some more head-banging, and I 
> believe I can focus my question...
> 
> When, in embedded Perl, on a flypage, I access a field, called 'limited'...
> [perl interpolate=1]
>   $string = [item-field limited];
>   $string .= " is the value.";
>   return $string;
> [/perl]
> 
> The code does what you would expect IF the field is not blank. (e.g., YES is 
> the value.) But, if the field happens to be blank, none of the code between 
> the Perl tags gets executed! 

This is in no way surprising. Bang your head, you should have look up
your error log for this. If [item-field limited], the first line
is no valid perl anymore. In any case, use quotes around 
[item-field limited].

Bye
        Racke

This is an effect I have reproduced a number of 
> different ways now. I noted in the documentation that "a few tags can't be 
> used with safe_tag, notably ones accessing a database that has not previously 
> been accessed on the page." But, on this page, the products database is 
> accessed twice before the [perl] tags, as follows:
> There is, for the page title,"<TITLE>[item-description]</TITLE>" and also, at 
> the top of the , "<strong>[item-field item] - [item-code]</strong>"
> 
> I have not found any other info on this phenomenon. Anyone with a solution 
> (or who will give me a dopey slap and straighten me out)? For now, I'll just 
> make sure none of my fields are blank....
> 

-- 
LinuXia - Solutions of Cool Competence - Internetprogramming and more
D-30163 Hannover, Waldstraße 4, 0511-3941290 (http://www.linuxia.net/)
Wir realisieren Onlineshops mit Minivend (http://www.minivend.com)
und MiniMate (http://www.linuxia.net/minimate/).


Search for: Match: Format: Sort by: