Akopia Akopia Services

[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 OTR Comm <otrcomm@wildapache.net>     ******

Hello,

Never mind, I solved this problem, I added the following code:


[if data products::image::[item-field sku]]    
<IMG SRC="[item-field image]" ALT="[item-field product]" BORDER="0"></A>
[/if]

Now though I have another related question!  I have multiple product
files that I am using, so how do I dynamically choose which product
database to reference here instead of the hardwired 'products' database.

That is, from within results.html, is there a minivend variable that
tells me which database I am addressing?

Thanks,
Murrah Boswell

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

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