[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] substring
****** message to minivend-users from jojo@buchonline.net ******
On 26 Oct, Sergey Sheykin wrote:
> ****** message to minivend-users from "Sergey Sheykin" <sheich@mosinfo.ru> ******
>
> Hi,
>
> I need, that minivend show me on a page
> any image, if product title include any text, for example :
> if product title include [micfofilm] then show image mf.gif.
> Code ^
>
> [if
>
> [perl] substr('[loop-field title]',index('[loop-field
> title]','['),index('[loop-field title]',']')) [/perl]
> = /[microfilm]/]
>
> <img src="/film.gif" border="0">
>
> [/if]
>
> does not work ...
>
> How can i do it ?
[seti dummy][loop-field title][/seti]
[if scratch dummy =~ /micfofilm/]
<img src="/film.gif" border="0">
[/if]
or with MV Version 3.xx
[set name="dummy" interpolate=1][loop-field title][/set]
etc.
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