[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: loop through Products
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]
.
.
etc.
Joachim
--
-------------Hans-Joachim Leidinger---------------------