Re: Founditems
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 17211
interpreted = N
texte = >Ken Grome wrote,>>Yes, you have to use HTML tables to do this, and there's a special [showif]>tag that goes inside the founditems context to make the table break after>every third item returned:>>[showif [index]\3]
[/showif]>>This tag goes after the tag in your founditems context. It creates a>break in the table after every third data cell, thus placing your>founditems into a table in rows of three ... :)>>Ken I wonder if you would be willing to explain this further. I am using>the standard vertical list at the moment and would also like to display 3>items accross.>Thanks,Hi Micheal,Here's an example I posted for someone else earlier:[search][founditems][field1] | [showif [index]\3]
[/showif][/founditems][/search]
This technique creates a table with 3 columns. That's because the [showif [index]\3] tag puts the
tags after every 3rd cell in the table, and those
tags tell the browser to end one row and start a new row in the table.[index]\3 means the index value is divisible by 3, so when the index is 3, 6, 9, 12, etc., the
tags are inserted after those corresponding table cells.Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
>Ken Grome wrote,>>Yes, you have to use HTML tables to do this, and there's a special [showif]>tag that goes inside the founditems context to make the table break after>every third item returned:>>[showif [index]\3]
[/showif]>>This tag goes after the tag in your founditems context. It creates a>break in the table after every third data cell, thus placing your>founditems into a table in rows of three ... :)>>Ken I wonder if you would be willing to explain this further. I am using>the standard vertical list at the moment and would also like to display 3>items accross.>Thanks,Hi Micheal,Here's an example I posted for someone else earlier:This technique creates a table with 3 columns. That's because the [showif [index]\3] tag puts the
tags after every 3rd cell in the table, and those
tags tell the browser to end one row and start a new row in the table.[index]\3 means the index value is divisible by 3, so when the index is 3, 6, 9, 12, etc., the
tags are inserted after those corresponding table cells.Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
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:
Replace context problem ... (1997)
Queertrons? (1997)
WebCat2b12--[searchstring] bug (1997)
REPOST: How do _you_ back up your db? (2000)
Having trouble installing on Windows XP Pro... (2006)
problem with WebDNA Command (2004)
Online Docs for the Beta... (2000)
Webcat causing crashes left and right! (1997)
WebCatalog for Postcards ? (1997)
Webmerch Error (1998)
Auto Web Pages (1999)
GuestBook example (1997)
[Off] Netscape Display Problem (1998)
SiteEdit NewFile.html ? (1997)
2.0Beta Command Ref (can't find this instruction) (1997)
expansion domain freak out (2003)
Shopping cart problem (2003)
filemaker - orderfile (1997)
Erotic Sites (1997)
Not really WebCat- (1997)