Re: Custom error files

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18751
interpreted = N
texte = >Someone please remind me how you get rid of the template xxx not found >message and replace it with a custom template. > >I changed my errormessages.db file to: >TemplateNotFound [IncludeFile /error.tmpl] > >then at the root of each vhost I am setting up a error.tmpl file. Now when >I try to access a bad url, it just shows: [IncludeFile /error.tmpl], it is >not actually including the file. > >What am I doing wrong?I think the [include] files you reference inside the errormessages.db file are a special case -- they must be referenced relative to the errormessages.db file. Try that instead, I think it will work ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. RE: Custom error files (Britt T. 1998)
  2. Re: Custom error files (Kenneth Grome 1998)
  3. Re: Custom error files (Kenneth Grome 1998)
  4. Custom error files (Britt T. 1998)
>Someone please remind me how you get rid of the template xxx not found >message and replace it with a custom template. > >I changed my errormessages.db file to: >TemplateNotFound [IncludeFile /error.tmpl] > >then at the root of each vhost I am setting up a error.tmpl file. Now when >I try to access a bad url, it just shows: [IncludeFile /error.tmpl], it is >not actually including the file. > >What am I doing wrong?I think the [include] files you reference inside the errormessages.db file are a special case -- they must be referenced relative to the errormessages.db file. Try that instead, I think it will work ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net 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:

pc (1997) 2.0Beta Command Ref (can't find this instruction) (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) Online reference (1997) Summing fields (1997) WebCatalog Upgrade Pricing? (1997) error: Too many nested [xxx] contexts (1997) Tracking inbound links for discounts (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) multiple db's (2003) Calculating Shipping charges for multiple items andqtys > 1 (1997) Maybe off topic but how to charge (1997) Formulas.db (2001) searchable list archive (1997) webten vs. webstar (1998) How flexible is Shipping? (1997) Not sending email !!! (2002) Need WebDNA that crashes server for testing (2000) MacAuthorize order data fields WAS:How To question... (1997) Frames and WebCat (1997)