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] [showif [index]\3][/showif] [/foundItems]
[sku]
Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors ===== Pacific Coast Software | WebCatalog Pro, WebCommerce Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Formating found categories (Richard Wylie 1997)
  2. Re: Formating found categories (Kenneth Grome 1997)
  3. Re: Formating found categories (Grant Hulbert 1997)
  4. Formating found categories (Richard Wylie 1997)
>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] [showif [index]\3][/showif] [/foundItems]
[sku]
Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors ===== Pacific Coast Software | WebCatalog Pro, WebCommerce Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/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:

Web DNA... (2007) New reserved words for [tags] (2000) Navigator 4.01 (1997) Passing Cart variable to subdirectory files? (1997) Only charge card when product shipped ? (1997) No luck with taxes (1997) Showif for mulitple variations (1997) Firesite cache vs webcat cache (1997) HTML Editors (1997) Date Comparison (1998) problems with 2 tags (1997) NT error logs (1997) [sendmail] questions... (1997) WebCatalog can't find database (1997) removelineitems (2000) Webstar 1.3.1 PPC (1997) [WebDNA] Set a secure cookie ??? (2016) searchable list archive (1997) [showif] and equality (1998) Record Modified Date - SQL ? (2000)