[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: loop through Products
Thanks... but what if I have 50 of those?? :)
Hans-Joachim Leidinger wrote:
> ****** message to minivend-users from Hans-Joachim Leidinger <hans-joachim.leidinger@home.gelsen-net.de> ******
>
> Dmitriy Katsman wrote:
> >
> > ****** message to minivend-users from Dmitriy Katsman <dmk@affordablecomputers.com> ******
> >
> > Hi...
> >
> > I have a products database set-up with the following fields:
> >
> > code title description .... ... .. .. ....
> > ud1 ud2 ud3 ud4 ud5 ud6 ud7 .... ud20
> >
> > Now... ud1 - ud20 are user defined fields (or specifications in other
> > words)... Most of the time... only 6,7 or 8 of them are defined... and
> > the rest are just blank.
> >
> > How can I display only the fields that are defined in loop on
> > flypage.html?
> > I tried using [perl interpolate=1]... [/perl] stuff... but [item-field
> > ud$i] produces [item-field ud1], [item-field ud2] and so on output and
> > they don't get interpolated (displayed as is)...
> >
> > HOWEVER... using [item-field ud1] or [item-field ud2] in [perl] produces
> > the right output (gets interpolated)...
> > WHY???
> >
> > if it can substitute $i for a number.... why can't it interpolate it at
> > the same time?
> >
> > Thanks for the help...
> >
> > any ideas on how to do what i need will be appreciated
> >
>
> Hi Dmitriy,
>
> i donīt know, if i have understand you right. But this might be a
> suggestion...try this
>
> [if-field ud1]
> the ud1 stuff
> [/if-field]
> [if-field ud2]
> the ud2 stuff
> [/if-field]
> [if-field ud2]
> the ud2 stuff
> [/if-field]
> -
> 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
--
______________________________________
| |
| Dmitriy Katsman |
| Webmaster, The Wizard |
| Affordable Computers, Inc. |
| http://www.affordablecomputers.com |
| (800) 864-2345 Ext. 114 |
|____________________________________|