Akopia Akopia Services

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

RE: [mv] v3.12 - [sort] not working with [loop args]



******    message to minivend-users from Ed LaFrance <newmedia@newmediaems.com>     ******

To replicants of this thread -

Thanks for your comments. My point was that the [sort] tag was not working 
with [loop] in accordance with the documented legal usage. I was looking 
for others with first-hand experience of the anomaly.  I'll notify Mike 
Heinz of the documentation error.

- Ed L.

At 03:50 PM 4/12/00 -0700, you wrote:
>******    message to minivend-users from "Christopher Thompson" 
><ct@arborinternet.com>     ******
>
>I agree, I don't think sort will work on a loop through values, but might
>work on [loop search=..."] which seems to be a no frills [search-region].
>
>I infer from Mike's comments that [loop] works by duplicating the code
>within the loop for each item in the list, and doing a sort of macro
>replacement of the [loop-...] tags as it goes. It is not really a
>branching loop the normal sense.
>
>Remember, MML is not a programming language. Believing it is will cause no
>end of suffering.
>
> > -----Original Message-----
> > From: owner-minivend-users@minivend.com
> > [mailto:owner-minivend-users@minivend.com]On Behalf Of Ryan Hertz
> > Sent: Wednesday, April 12, 2000 2:38 PM
> > To: minivend-users@minivend.com
> > Subject: Re: [mv] v3.12 - [sort] not working with [loop args]
> >
> >
> > ******    message to minivend-users from Ryan Hertz
> > <rhertz@gyb.baits.com>     ******
> >
> > At 11:27 AM 4/12/00 , you wrote:
> > >******    message to minivend-users from Ed LaFrance
> > ><edlafrance@printexusa.com>     ******
> > >[snip]
> >
> > >...still a blank page!  Finally I tried:
> > >
> > >[loop arg="4 3 2 1"]
> > >         [sort]
> > >         [loop-code]
> > >[/loop]
> > >
> > >...and...
> > >
> > >[loop arg="4 3 2 1"]
> > >         [loop-code]
> > >[/loop]
> > >
> > >At last the args were listed on the page, but they were not
> > sorted in the
> > >instance where the [sort] tag was included.
> > >
> > >So, it appears that:
> > >
> > >1). [loop arg arg arg] does not work at all, though the docs say it is
> > >legal; [loop arg="arg arg arg"] must be used instead;
> >
> >          I agree.
> >
> >
> > >2). [sort] does not work at all in this context.  I have used [sort
> > >database::fieldname] with [tag each database] and [loop
> > search], so I know
> > >those work, but when the loop data is supplied as a literal
> > argument or
> > >variable string and/or the sort is based on the loop data
> > itself (instead
> > >of a related database field), the sort tag appears to be broken.
> >
> >          It doesn't make logical sense to me that the sort
> > would be inside
> > the loop.  It seems that in that syntax that each looped arg
> > will exist as
> > a single item, sorting a single item wouldn't do much.  Perhaps if the
> > [sort] encompassed the [loop] it would work.  But, :-), I don't
> > have much
> > experience with using [sort].
> >
> >
> >
> > Ryan Hertz                                              tel
> > 800-645-BAIT
> > Webmaster                                               fax
> > 520-645-2588
> > Advertising Director
>http://yamamoto.baits.com
>Gary Yamamoto Custom Baits, Inc.                http://www.insideline.net
>
>-
>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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| New Media E.M.S.		Software Solutions for Business |
| 12831 Blanco Ct.		Consulting			|
| Poway, CA  92064  U.S.A.	Custom Programming		|
| 858-486-6508			Internet and eCommerce		|
| 630-604-4265 eFax						|
| newmedia@newmediaems.com					|
| http://www.newmediaems.com					|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-
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: