Re: Formating found categories
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 11893
interpreted = N
texte = >I've been messing with trying to get found categories on a search.tmpl >file in to a table.>>ie there are say 6 catagories in the db, and we want to display then in 2 >columns of 3.I don't remember if anyone answered this already, but here's the hint:In order to 'break' at an arbitrary column while displaying a list of [founditems], you use [showif]'s ability to sense when a number is divisible by another.[showif [index]\3] means to do something every third time.So you would set up your table _as though_ it would go on forever with just one row leading from left to right. But you would put the [showif] inside that causes something special to happen every third item. In your case, it would close off the row and start another new row.
[foundItems]| [sku] | [showif [index]\3]
[/showif][/foundItems]
Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>I've been messing with trying to get found categories on a search.tmpl >file in to a table.>>ie there are say 6 catagories in the db, and we want to display then in 2 >columns of 3.I don't remember if anyone answered this already, but here's the hint:In order to 'break' at an arbitrary column while displaying a list of
[founditems], you use
[showif]'s ability to sense when a number is divisible by another.[showif [index]\3] means to do something every third time.So you would set up your table _as though_ it would go on forever with just one row leading from left to right. But you would put the
[showif] inside that causes something special to happen every third item. In your case, it would close off the row and start another new row.
Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Grant Hulbert
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:
Blacklisted (2002)
WebSite and *NO* Authentication Dialog Box!!? (1998)
Founditems context returning only 1 item (1997)
talk list (2000)
WebCat2 beta 11 - new prefs ... (1997)
webdna osx server startupitem (2003)
Add a Blog to your site. (2002)
[showif [math (1999)
emailer on Windows Beta 18 (1997)
Nesting format tags (1997)
Using [sendmail] for mass mailings (2001)
problems with 2 tags (1997)
japanese characters (1997)
Re:Emailer and encryption (1997)
Showif, Hideif reverse logic ? (1997)
Any problem with using a g4 with WebCat (2000)
Email Formatting (2001)
Extra Text Fields (was Another question) (1997)
Shopping Cart Problem (1998)
[Sum] function? (1997)