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 WebDNASent: 7/25/97 9:19 AMTo: 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:>
>>>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][SKU] | [showif [index]\5]
[/showif][/founditems][/search]
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:
Subject: Re: Part Html part WebDNASent: 7/25/97 9:19 AMTo: 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:>>>>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][SKU] | [showif [index]\5]
[/showif][/founditems][/search]
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:
Re:Help name our technology! (1997)
Include a big block of text (1997)
ARGH! (2003)
emailer (1997)
Mac v. NT (1998)
building / customizing stores (2000)
Physical Security for WebCatalog Directories (1997)
Help name our technology! I found it (1997)
Math function in Formula.db (1997)
sort problems....bug or brain fart? (1997)
Hard Questions ? (1997)
Simple way to create unique SKU (1997)
[WebDNA] Conditional search (2009)
search question (2001)
Fun with dates (1997)
How to pass from a detail page to another? (1998)
[WebDNA] DB problem solved (2011)
Requiring that certain fields be completed (1997)
Confused about QTY and QTY* price updating (1998)
WebCat editing, SiteGuard & SiteEdit (1997)