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:

Type 2 errors with WebCatalog.acgi (1997) Banner DNA (1997) Creating main- and sub-category search (1997) [BULK] [WebDNA] How to test email validity? (2011) WCf2 and nested tags (1997) merchant accts. (1997) Navigator 4.01 (1997) WebCat2b13MacPlugIn - More limits on [include] (1997) WebCatalog f2 Installation (1997) RE: Upload and WebCat (1998) A sendmail warning (2005) RE: HTTP Header info (1997) Shipcost formula (2004) Magic [text] shows and then no show (2000) Search in 2 or more catalogs (1997) Cart # Starting at 1000 (2000) PCS Frames (1997) Capturing the referring site (1999) Opinion: [input] should be called [output] ... (1997) Using Cookie for client specific info? (1997)