Akopia Akopia Services

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

RE: [mv] Perl Variables in a Minivend Tag..



******    message to minivend-users from Victor Nolton <ven@pragakhan.com>     ******

Easier to read the email now that it's not html encoded.

I use this code below and it works perfect for me.

[calc] return '</TR><TR>' if '[item-increment]' % 3 eq 0[/calc]
also see [loop-increment]

This code has come in VERY handy for other projects too.

Ven

>******    message to minivend-users from "Rene Hertell" 
><rene@hertell.com>     ******
>
>I'm not good at this, but in my opinion you forgot a ] bracket in the [if
>[calc]$tdcount... part.. IF there is something else wrong, then I can't help
>:)
>
>René
>
>
>
>-----Original Message-----
>From: owner-minivend-users@minivend.com
>[mailto:owner-minivend-users@minivend.com]On Behalf Of Support
>Sent: 10 November 2000 04:38
>To: Minivend
>Subject: [mv] Perl Variables in a Minivend Tag..
>
>
>Hello List.
>
>
>I Know that I have seen the solution to this somewhere. But for the life of
>me cannot find it so I am requesting some help from the llist.. The problem
>is in the [if] [/if]. I have a  search results page that I need to
>dynamically setup to create a table of thumbnails.. using Perl to initialize
>a counter.. then doing a comparison.. The problem is that I can't get the
>Minivend [if] to work correctly. I keep getting an Invalid  'No such
>comparison available' when I run it. The question is How do I interpret a
>Perl Variable in a minivend tag..
>
>This is the actual Code that I am using... everything works except the [if]
>[/if]...   I am using MV 3.14...
>
>TIA
>
>Richard Crumlich
>
>
>
><TABLE border=1>
>    <TR>
>        <td>
>            [value mv_search_match_count] total found <br>
>            Rows Needed [calc][value mv_search_match_count] / 4[/calc]
>           <! [calc]$tdcount=0 [/calc] >
>        </td>
>    </tr>
>    <tr>
>        [search-region]
>            [search-list]
>                <! [calc]$tdcount++[/calc] >
>                [if [calc]$tdcount[/calc] > 3]
>                    </tr>
>                    <! [calc]$tdcount=0[/calc] >
>                    <tr>
>                [/if]
>                <TD width=100><IMG src="/images/[item-field thumb_image]">
>                    <br>[item-field name]<br>
>                    [calc]$tdcount[/calc] of [value mv_search_match_count]
>                </td>
>            [/search-list]
>        [/search-region]
>    </TR>
> </TABLE>
>
>-
>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


http://www.vensnews.com

Victor "Ven" Nolton __________________________ http://www.VensNews.com
http://PragaKhan.com  http://LordsofAcid.com  http://DarlingNikkie.com

        All HTML Encoded email will be ignored. Learn Standards.
-
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: