Re: displaying 12 results 4 by 3
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 32340
interpreted = N
texte = >Hello all,>>I'm fairly new to Webcat so please bare with me. I'm trying>to display a max of 12 images on my results page 4 accross>by 3 down rather than all 12 in a list. A good example of>this is the Stockbyte.com site. If anyone has an answer to>this it would be greatly appreciated.Here's the webdna coding format you need. The showif puts the table row tags in the proper place only when the index value is divisible by 4, thus allowing you to display 4 images per row before a new row begins. The max=12 in the search context allows only 12 items to be displayed per page. This code assumes you're using the image file naming convention [sku].jpg and that you store your images in the images subfolder:[search ... &max=12][founditems][showif [index]\4][/showif][/founditems]
 |
|
|
[/search]================================Kenneth Grome, WebDNA Consultant808-737-6499 http://webdna.net================================-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>Hello all,>>I'm fairly new to Webcat so please bare with me. I'm trying>to display a max of 12 images on my results page 4 accross>by 3 down rather than all 12 in a list. A good example of>this is the Stockbyte.com site. If anyone has an answer to>this it would be greatly appreciated.Here's the webdna coding format you need. The showif puts the table row tags in the proper place only when the index value is divisible by 4, thus allowing you to display 4 images per row before a new row begins. The max=12 in the search context allows only 12 items to be displayed per page. This code assumes you're using the image file naming convention [sku].jpg and that you store your images in the images subfolder:[search ... &max=12][founditems][showif [index]\4][/showif][/founditems] |
|
|
[/search]================================Kenneth Grome, WebDNA Consultant808-737-6499 http://webdna.net================================-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Kenneth Grome
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Problems getting parameters passed into email. (1997)
[SHOWIF AND/OR] (1997)
[ShowIf] and empty fields (1997)
Search or delete (or date or time) has bugs ... (1998)
Add more fields to an existent data base (1997)
select multiple (1997)
[OT] (waaaay OT) further off topic than before (2004)
Document Contains No Data! (1997)
Training Tapes Improved (1998)
Message Board (1998)
[OT] Disable/enable field (2003)
FlushDatabases (2000)
HTML authentication HTML page (1999)
PIXO support (1997)
Format question WC Mac f3 (1997)
[FileInfo] (1998)
Wanted: More Math Functions (or, Can You Solve This?) (1997)
[OT] (waaaay OT) further off topic than before (2004)
Do .tpls A Max File Size? (1998)
Problems with large number of items in a cart. (1998)