Re: Part Html part WebDNA

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12703
interpreted = N
texte = Subject: Re: Part Html part WebDNA Sent: 7/25/97 9:19 AM To: WebCatalog Talk List, WebDNA-Talk@smithmicro.comBobThanks to Gary Richter for this code. I have used it successfully on a couple of sites. I'm not sure how or why it works, but it does. ( I don't know what the \6 does exactly.>I am having trouble figgering how to format my output like so. > >results page: > [subcategory] > _________ _________ >| | [Title] | | [Title] >| | [Descrip] | | [Descrip] >| [Pic1] | | [Pic1] | >| | [Price] | | [Price] >| | Buy it | | Buy it >|_________| |_________| > >This would be then be formatted to 3 rows, I know I can limit the rows by >choosing say maxrecords=6, but how can I get the docs to be displayed >side by side in pairs on any size monitor. Its harder than it looks, or I >am easily confused.Gary Richter's code sample follows:> > >[Search >db=/webcatalog/control.db&cnamesort=1&cnamesdir=as&eqctypedatarq=idbrand] >[founditems] > > >[showif [index]\6] > >[/showif] >[/founditems] >[/search] > >
[cname]
> > >This is an example using radio buttons. But see the \6 above. This breaks >the row in my case at 6 across. When it gets to 6 it puts in the html to >close the row and start another row with the and then the .Try it this way with a database that has an SKU field. [Search db=EMF.db&SKUsort=1&SKUsdir=as&geSKUdata=0&max=3] [founditems] [showif [index]\5] [/showif] [/founditems] [/search]
[SKU]
You would want to change max to 6 and the \5 to \2.As far as the pictures are concerned, the Tearoom tutorial has an explanation of how to do that. You need to have an Has_Picture field and name the picture with a format like SKU.jpg or SKU.gif. All the other text should be enclosed within the first tags.Gary or Grant, I would love an explanation of how this works.Another question! In the WebDNA for the ThankYou.tmpl template that has [email] context there is an exclamation point (!). Gary uses a back slash (\)in his code. What kind of operators are these, HTML or WebDNA? If WebDNA, where are they documented.Jerry Nielsen - commSTRUCT Associates Associated Messages, from the most recent to the oldest:

    
  1. Re: Part Html part WebDNA ( 1997)
  2. Re: Part Html part WebDNA (bob 1997)
  3. Re: Part Html part WebDNA (grichter@panavise.com (Gary Richter) 1997)
  4. Re: Part Html part WebDNA ( 1997)
  5. Part Html part WebDNA (bob 1997)
Subject: Re: Part Html part WebDNA Sent: 7/25/97 9:19 AM To: WebCatalog Talk List, WebDNA-Talk@smithmicro.comBobThanks to Gary Richter for this code. I have used it successfully on a couple of sites. I'm not sure how or why it works, but it does. ( I don't know what the \6 does exactly.>I am having trouble figgering how to format my output like so. > >results page: > [subcategory] > _________ _________ >| | [Title] | | [Title] >| | [Descrip] | | [Descrip] >| [Pic1] | | [Pic1] | >| | [Price] | | [Price] >| | Buy it | | Buy it >|_________| |_________| > >This would be then be formatted to 3 rows, I know I can limit the rows by >choosing say maxrecords=6, but how can I get the docs to be displayed >side by side in pairs on any size monitor. Its harder than it looks, or I >am easily confused.Gary Richter's code sample follows:> > >[Search >db=/webcatalog/control.db&cnamesort=1&cnamesdir=as&eqctypedatarq=idbrand] >[founditems] > > >[showif [index]\6] > >[/showif] >[/founditems] >[/search] > >
[cname]
> > >This is an example using radio buttons. But see the \6 above. This breaks >the row in my case at 6 across. When it gets to 6 it puts in the html to >close the row and start another row with the and then the .Try it this way with a database that has an SKU field. [Search db=EMF.db&SKUsort=1&SKUsdir=as&geSKUdata=0&max=3] [founditems] [showif [index]\5] [/showif] [/founditems] [/search]
[SKU]
You would want to change max to 6 and the \5 to \2.As far as the pictures are concerned, the Tearoom tutorial has an explanation of how to do that. You need to have an Has_Picture field and name the picture with a format like SKU.jpg or SKU.gif. All the other text should be enclosed within the first tags.Gary or Grant, I would love an explanation of how this works.Another question! In the WebDNA for the ThankYou.tmpl template that has [email] context there is an exclamation point (!). Gary uses a back slash (\)in his code. What kind of operators are these, HTML or WebDNA? If WebDNA, where are they documented.Jerry Nielsen - commSTRUCT Associates

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:

trouble updating records in database (1998) Not really WebCat (1997) Regarding PayPal (was Payments -> Bank Accounts) (2005) Heads up, cookies *may* be outlawed in Europe (2001) target=_blank and form variables (1997) [OT] RE: Drop down menu - Part 1 (2003) Best way to add data to .db (1999) Database of Tax Rates? (1997) America Online Issues (1998) New index for docs (1997) Calendar using WebCatalog? (1997) Random Command (1997) webten vs. webstar (1998) HELP WITH DATES (1997) Sort Order on a page search (1997) Custom Shipping Charges (1997) Search Engine questions ... (2002) [shownext] and descending order (1997) LOOP and IF statements (1997) WebCat2 - [SendNews] (1997)