[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] display product thumbnail pics..
Quoting Paul Jordan (paul@gishnetwork.com):
>
> > >
> > > Try to input these code on your results.html
> > >
> > > <a href="[area [item-code]]"><img src="thumb/[item-field
> > > thumb]" border="0"><br></a><a href="[area [item-code]]">[item-
> > > description]</a>
> > >
> > > instead of just
> > >
> > > <a href="[area [item-code]]">[item-description]</a>
> > >
> > > undee
> >
> > Actually I would suggest that you create a blank image for
> > products which don't have a picture and then do this:
> >
> > <a href="[area [item-code]]"><img src="thumb/[if-item-field
> > thumb][item-field thumb][else]none.jpg[/else][/if]" border="0">
> > <br></a><a href="[area [item-code]]">[item-description]</a>
> >
>
>
> If you are sure that you are going to have thumbs and images, like I am, I
> cut down on db entry and go:
>
> <a href="[area [item-code]]"><img src="__THUMB_DIR__/[item-code].jpg"
> border="0"><br></a><a href="[area [item-code]]">[item-description]</a>
>
> my regular images are called by __ITEM_DIR__/[item-code].jpg
>
> This only works if you are positive you will have the same extension for
> each type of image, so make all thumbs .gif, or .jpg. Make all you item pics
> .gif or .jpg.
>
Actually, any modern browser will display the right thing no matter
the extension.
You can just put:
<img src="items/[item-code]">
and name it for the item. The browser will figure out from the stream
which it is and display it properly.
--
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH 45013
phone +1.513.523.7621 <mheins@redhat.com>
Few blame themselves until they have exhausted all other possibilities.
-- anonymous