[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
RE: [mv] Item-field Display MV 4.04
****** message to minivend-users from "Humberto T Reyes" <htreyes@earthlink.net> ******
Joachim,
Thank you--I'll give that a try :-)
Humberto
-----Original Message-----
From: owner-minivend-users@minivend.com
[mailto:owner-minivend-users@minivend.com]On Behalf Of
jojo@buchonline.net
Sent: Thursday, September 21, 2000 12:49 AM
To: minivend-users@minivend.com
Subject: Re: [mv] Item-field Display MV 4.04
****** message to minivend-users from jojo@buchonline.net ******
On 20 Sep, Humberto T Reyes wrote:
> ****** message to minivend-users from "Humberto T Reyes"
<htreyes@earthlink.net> ******
>
> Greetings to all,
>
> A quick question...Is there a way to use [item-field varname] to display
> only a part of the field data.
>
> In other words if I have a description field that is 300 characters
> long--how would I display just 150 of those characters?
>
> Any ideas?
Try
[seti somevar]Hello World! This is a very long description bla bla bla bla
bal bal bla
[/seti]
[perl arg=scratch]
$a = $Safe{'scratch'}->{'somevar'};
$Safe{'scratch'}->{'somevar'} = substr($a, 0, 12);
return '';
[/perl]
<BR>
TEST: ****[scratch somevar]*****<BR>
and you will get
TEST: ****Hello World!*****
You can use
[seti somevar][item-field varname][/seti]
Regards,
Joachim
--
Hans-Joachim Leidinger
buch online jojo@buchonline.net
Munscheidstr. 14 FAX: +49 209 1671441
45886 Gelsenkirchen FAX: 0209 1671441
-
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