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:
Rumpus/Typhoon modules included in Typhoon ... (1997)
Search design (1997)
Forbidden CGI Error (1997)
service stop and restart (1997)
Shownext Tricks (2000)
problems with 2 tags (1997)
Non-Cart Files in Shopping Cart Folder (1997)
Error, 101 a DNS problem ? (1997)
Multiple prices (1997)
HELP WITH DATES (1997)
Date stamp and purging (1998)
Cookie still not working (1999)
Missing from Docs [folderName] (1997)
WebCat2 beta 11 - new prefs ... (1997)
[carts] and databases (1997)
Problems with shopping cart (1997)
[SHOWIF AND/OR] (1997)
Best way to handle 404 errors with WebDNA and Web* V (2003)
same bill to and ship to? (1998)
WebCat2b12 CGI Mac - [shownext] problem (1997)