Re: Reversed words
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 10382
interpreted = N
texte = >>Per the pdf file it claims that there are certain reserved words like>>address1 and address2 and email and company and price, etc.>>This is only important if you plan to use the shopping cart. The shopping>cart file has header fields named address1, email, etc. While it is>possible to have a database with exactly those fieldnames, we recommend>for simplicity that you stay away from those names to reduce confusion if>you ever want to display database field address1 on the same page where>a shopping cart header field address1 is also displayed.>>WebCatalog2 'does the right thing' in these cases; it looks for the>fieldname that is closest 'in context' to what you're displaying, but>sometimes it's confusing to us humans. For example, if you have a database>field named [date] and you use the following, what happens?>>[foundItems]>[date]
>[/foundItems]>>WebCatalog is smart enough to realize that there is a [date] field in the>database, and will use that field instead of today's date. But at this>time there is no way for you to display both the database field and>today's date inside that [foundItems] loop, because it has no way of>knowing which one you mean.Everyone, please don't forget (if you ever need this tip) that you can haveas many [foundItem] loops in a results template as you want. Let's say youhave a single [foundItems] loop on your results template but you want touse today's date somewhere INSIDE that loop.Well, instead of thinking that this will be a hassle, just 'end the loop',then display today's date with a [date] tag, then 'start another loop'. Youcan do all three steps simply by using:[/founditems][date][founditems]See what we're doing here? Instead of actually displaying today's date'inside' your original [foundItems] loop, we display today's date 'outsidethe loop' by splitting the original [foundItems] loop into two separate[foundItems] loops ... so the entire page would actually have all thefollowing tags:[foundItems] <--- some database field values inside this first loop[/foundItems][date] <--- this gives you today's date[foundItems] <--- (more database field values inside thissecond loop[/foundItems]By the way, there's another way to get the very same results *within* theoriginal [foundItems] loop (if you have some aesthetic reason for *not*splitting the original loop into two separate loops) ... but it requiressetting variable values outside the loop and then using those values insidethe loop. This 'variable' technique is more complicated and not necessaryin most cases, but it can be done! :)------------------------------------To leave this talk list send an email to macjordomo@smithmicro.comwith BODYunsubscribe WebDNA-Talk------------------------------------
Associated Messages, from the most recent to the oldest:
>>Per the pdf file it claims that there are certain reserved words like>>address1 and address2 and email and company and price, etc.>>This is only important if you plan to use the shopping cart. The shopping>cart file has header fields named address1, email, etc. While it is>possible to have a database with exactly those fieldnames, we recommend>for simplicity that you stay away from those names to reduce confusion if>you ever want to display database field address1 on the same page where>a shopping cart header field address1 is also displayed.>>WebCatalog2 'does the right thing' in these cases; it looks for the>fieldname that is closest 'in context' to what you're displaying, but>sometimes it's confusing to us humans. For example, if you have a database>field named
[date] and you use the following, what happens?>>
[founditems]>
[date]>[/foundItems]>>WebCatalog is smart enough to realize that there is a
[date] field in the>database, and will use that field instead of today's date. But at this>time there is no way for you to display both the database field and>today's date inside that
[founditems] loop, because it has no way of>knowing which one you mean.Everyone, please don't forget (if you ever need this tip) that you can haveas many [foundItem] loops in a results template as you want. Let's say youhave a single
[founditems] loop on your results template but you want touse today's date somewhere INSIDE that loop.Well, instead of thinking that this will be a hassle, just 'end the loop',then display today's date with a
[date] tag, then 'start another loop'. Youcan do all three steps simply by using:[/founditems]
[date][founditems]See what we're doing here? Instead of actually displaying today's date'inside' your original
[founditems] loop, we display today's date 'outsidethe loop' by splitting the original
[founditems] loop into two separate
[founditems] loops ... so the entire page would actually have all thefollowing tags:
[founditems] <--- some database field values inside this first loop[/foundItems]
[date] <--- this gives you today's date
[founditems] <--- (more database field values inside thissecond loop[/foundItems]By the way, there's another way to get the very same results *within* theoriginal
[founditems] loop (if you have some aesthetic reason for *not*splitting the original loop into two separate loops) ... but it requiressetting variable values outside the loop and then using those values insidethe loop. This 'variable' technique is more complicated and not necessaryin most cases, but it can be done! :)------------------------------------To leave this
Talk List send an email to macjordomo@smithmicro.comwith BODYunsubscribe WebDNA-Talk------------------------------------
Kenneth Grome
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:
Emailer errors - repost (2000)
Exclude by date - multiple (1997)
all records returned. (1997)
encrypt/decrypt actin' funny but I don't know why... (2000)
before after on (1998)
NY taxRates.db? (1997)
Emailer setup (1997)
Help with Repost Data msg from form (1997)
Help! WebCat2 bug (1997)
MySQL (2003)
Need help... (1997)
WCS Newbie question (1997)
Emailer port change (1997)
bannerads example idiot (1997)
RED QUESTION MARK (1999)
Reversed words (1997)
http upload (2001)
Sendmail double space (2001)
[Fwd: Rotating Banners ... (was LinkExchange)] (1997)
Credit card number for testing (2003)