Re: [include] and not found

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 63378
interpreted = N
texte = I've done this kind of thing for years, but I never needed the 'function' context to do it. I just put my code in include files, that's all ... :) Sincerely, Kenneth Grome www.kengrome.com On Tue, 08 Nov 2005 14:14:54 -0600, Donovan Brooke wrote: > Patrick McCormick wrote: > [snip] It would be nice if SMSI added a notfound option, though to override >> the default message. >> >> Thanks Jesse > > > As Jesse mentioned... > > --Start code-- > [function name=NF_INCLUDE&preparse=F] > [fileinfo file=[__thefile]] > [hideif [IsFolder]=T] > [showif [Exists]=T] > [include file=[__thefile]] > [/showif] > [/hideif] > [showif [IsFolder]=T] > This filename is a folder. Btw, you smell. > [/showif] > [/fileinfo] > [/function] > --End code-- > > Call like: > [NF_INCLUDE __thefile=somedir/thefile.inc] > > > Feel free to use exactly as written... or you > can take out the last showif, if you wish. :-) > > Donovan > > > > > -- > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > DONOVAN D. BROOKE EUCA Design Center > > <- Web Development (specializing in eCommerce),-> > <- Custom Paint, Labels, and Specialty Signage. -> > <- Home and Business Embellishment/Fabrication, -> > <- Glass Blowing, and Art Glass -> > > PH/FAX:> 1 (608) 835-2476 > Web:> http://www.egg.bz | http://www.euca.us > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [include] and not found ( Patrick McCormick 2005)
  2. Re: [include] and not found ( Marko Bernyk 2005)
  3. Re: [include] and not found ( Patrick McCormick 2005)
  4. Re: [include] and not found ( Marko Bernyk 2005)
  5. Re: [include] and not found ( Donovan Brooke 2005)
  6. Re: [include] and not found ( Donovan Brooke 2005)
  7. Re: [include] and not found ( Patrick McCormick 2005)
  8. Re: [include] and not found ( Kenneth Grome 2005)
  9. Re: [include] and not found ( Donovan Brooke 2005)
  10. Re: [include] and not found ( Jesse Proudman 2005)
  11. Re: [include] and not found ( Patrick McCormick 2005)
  12. Re: [include] and not found ( Jesse Proudman 2005)
  13. [include] and not found ( Patrick McCormick 2005)
I've done this kind of thing for years, but I never needed the 'function' context to do it. I just put my code in include files, that's all ... :) Sincerely, Kenneth Grome www.kengrome.com On Tue, 08 Nov 2005 14:14:54 -0600, Donovan Brooke wrote: > Patrick McCormick wrote: > [snip] It would be nice if SMSI added a notfound option, though to override >> the default message. >> >> Thanks Jesse > > > As Jesse mentioned... > > --Start code-- > [function name=NF_INCLUDE&preparse=F] > [fileinfo file=[__thefile]] > [hideif [IsFolder]=T] > [showif [Exists]=T] > [include file=[__thefile]] > [/showif] > [/hideif] > [showif [IsFolder]=T] > This filename is a folder. Btw, you smell. > [/showif] > [/fileinfo] > [/function] > --End code-- > > Call like: > [NF_INCLUDE __thefile=somedir/thefile.inc] > > > Feel free to use exactly as written... or you > can take out the last showif, if you wish. :-) > > Donovan > > > > > -- > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > DONOVAN D. BROOKE EUCA Design Center > > <- Web Development (specializing in eCommerce),-> > <- Custom Paint, Labels, and Specialty Signage. -> > <- Home and Business Embellishment/Fabrication, -> > <- Glass Blowing, and Art Glass -> > > PH/FAX:> 1 (608) 835-2476 > Web:> http://www.egg.bz | http://www.euca.us > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ 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:

Trying to loop for letters (1999) Country & Ship-to address & other fields ? (1997) How to redirect based on price subtotal? (1998) WebCat2 as a chat server? (1997) Fwd: Problems with Webcatalog Plug-in (1997) Multi-processor Mac info ... (1997) Logging purchases (1997) Virtual hosting and webcatNT (1997) Applescript in Webcatalog problem (1997) Generating unique SKU from [cart] (1997) Version f1 status (1997) authorize.net CC processing (was WC on Mac OS X or Mac OS (2001) Search in 2 or more catalogs (1997) SERIAL NUMBER BEING LOST AGAIN!!! (1999) Return records from another (1997) OT: javascript print() (2003) Webcat causing crashes left and right! (1997) Part Html part WebDNA (1997) When to use [convertchars] ?!?!? (2000) Sorting Numbers (1997)