[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Question about: Some products have images, some do not
****** message to minivend-users from Steve & Patti Getzinger <steveandpatti@wubs.org> ******
To start with you have one to many [ in your tag. That's without even looking at the
actual syntax :) Next on the list how about [if [item-field image]] Ok now how about
Steve's way? Name your images by sku # this affords the ability for easy removal when
certian product lines are removed and we can do a [if file /path/to/image/dir/[item
code].jpg] and write our code accordingly. Then we call up our friend [else] and write
our code. That should get you rolling.
Steve
OTR Comm wrote:
> ****** message to minivend-users from OTR Comm <otrcomm@wildapache.net> ******
>
> Hello all,
>
> In my products file, some of my products have images and some do not.
>
> After I have done a search in my products file for a particular product,
> how do I test in results.html for whether or not there is an entry in
> the image field?
>
> That is, if I have an picture defined in the image field, I want to
> display it, if do not want to display the 'broken images link' in my
> browser.
>
> I have tried diffent [if]...[/if] syntax around the IMAG SRC
> statement,i.e.:
>
> <IMG SRC="[item-field image]" ALT="[item-field product]" BORDER="0"></A>
>
> I have tried things like:
>
> [if value [[item-field image] ne ""]
> <IMG SRC="[item-field image]" ALT="[item-field product]" BORDER="0"></A>
> [/if]
>
> but I can not figure out how to check if the field is blank or NULL!
>
> Any help here would be greatly appreciated.
>
> Thanks,
> Murrah Boswell
>
> -
> 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
--
=========================================================
WDI Steve & Patti Getzinger
702 Lincolnway West steveandpatti@wubs.org
South Bend, IN 46616 http://www.wubs.org/
219-287-4700 (Main Office) 317-535-0239 (Direct Line)
=========================================================
-
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