Re: [isfile] ?
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 11439
interpreted = N
texte = >>look under [listfiles] in the context tags of the online ref. It is used>>for doing a complete directory not just a specific file unless you render>>the folder ahead of time which is how we plan to use it.Until we get some new tags for file-existence checking, you can 'pre-render' the contents of a folder into a database so at least you don't have to type new files in from memory.Here is some WebDNA that 'renders' all the online docs into a single database. You can modify it to look for files of type .gif and just store their names into a database (don't try to store the contents of a .gif file into a database field, however -- binary information would make it unhappy).[closedatabase alldocs.db][writefile alldocs.db]filename contents[/writefile][listfiles webcatalog/webcatreference][filename]
[showif [filename]^.html][append alldocs.db]filename=[filename]&contents=[url][include file=webcatalog/webcatreference/[filename]&raw=T][/url][/append][/showif][/listfiles]Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>>look under
[listfiles] in the context tags of the online ref. It is used>>for doing a complete directory not just a specific file unless you render>>the folder ahead of time which is how we plan to use it.Until we get some new tags for file-existence checking, you can 'pre-render' the contents of a folder into a database so at least you don't have to type new files in from memory.Here is some WebDNA that 'renders' all the online docs into a single database. You can modify it to look for files of type .gif and just store their names into a database (don't try to store the contents of a .gif file into a database field, however -- binary information would make it unhappy).[closedatabase alldocs.db][writefile alldocs.db]filename contents[/writefile][listfiles webcatalog/webcatreference][filename]
[showif [filename]^.html][append alldocs.db]filename=[filename]&contents=
[url][include file=webcatalog/webcatreference/[filename]&raw=T][/url][/append][/showif][/listfiles]Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Grant Hulbert
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:
Not really WebCat (1997)
WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997)
followup to ws3 vs ws2.1 speed (1998)
File Upload (1997)
Shipcost formula (2004)
CommandSecurity? (1997)
WebCommerce: Folder organization ? (1997)
Running 2 two WebCatalog.acgi's (1996)
writing orders to a db (1997)
[WebDNA] WebDNA Showcase? (2008)
Moment of Thanks (1997)
WILDWEBCAT encrypt.tpl submission (1998)
I can help! (1996)
webcat 3.06f on Linux keeps dying (1999)
[sendmail] questions... (1997)
OT - Public Upload Security (2002)
Sort Order on a page search (1997)
WebMerchant MacAuthorize Hub (1999)
Permissions (2000)
WebCat2: Items xx to xx shown, etc. (1997)