MiniVend Akopia Services

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

Re: [mv] Include



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

Hi,

Hmmm....what happen, if you get a new minivend? Do you edit all pm files
once again?

Regarding the trouble by using the include tag, i use this with
variable without any problem. In most common case, minivend can't find
any file, if the value of the variable is not right. Insert a code like

The value is : [scratch test] <BR>
include [scratch test]]

and check the value. If you have a file like ../yourshop/pages/test.html
and the value test is "test", you get no success. For example:

Filestructur:

..../yourshop/pages
..../yourshop/pages/test1.html
..../yourshop/pages/test2.html
..../yourshop/pages/otherstuff/stuff1.html
..../yourshop/pages/otherstuff/stuff1.html


to include all the files "test" and "stuff", a right using of the
include tag is

[include pages/test1.html]
[include pages/test2.html]
[include pages/otherstuff/stuff1.html]
[include pages/otherstuff/stuff2.html]


If you test the include tag without using a variable like

[include pages/<path-to-the-file>/<filename>]

and you get success, something goes wrong with your variable.

Regards,

Joachim


On 21 Dec, zb wrote:
> ******    message to minivend-users from zb <zb@bisp.com>     ******
> 
> find following in  yourminivendroot/lib/Vend/Parse.pm
> 
> include                 => sub {
>                                                                        
> &Vend::I
> nterpolate::interpolate_html(
> 
> &Vend::Util::readfile
> 
>         ($_[0], $Global::NoAbsolute)
> 
>   );         
> 
> change it to something like following:
> 
> include                 => sub {
> my $filename=&Vend::Interpolate::interpolate_html($_[0]);
>                                                                        
> &Vend::I
> nterpolate::interpolate_html(
> 
> &Vend::Util::readfile
> 
>         ($filename, $Global::NoAbsolute)
> 
>   );                     
> 
> 
> hope this helpful
> 
> zb                 
> 
> KEVIN LYONS wrote:
>> 
>> ******    message to minivend-users from "KEVIN LYONS" <kclyons@silvernet.net>     ******
>> 
>> Trying to use include with a variable, [include [scratch test]]
>> any ideas? Thanks
>> 
>> Kevin Lyons
>> kclyons@silvernet.net
 
-- 
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: