Re: [showif],[refferer],[include] in errormessages.db

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 44695
interpreted = N
texte = >On 11/1/02 2:27 PM, Alain Russell wrote: > > > We do this in our errormessages.db. > > > > [showif [fileinfo file=/error.html][exists][/fileinfo]=T][redirect > > /error.html][/showif] > > > > So this in the 'template not found' error and you can create individual > > error files for each site and they will only be used if the exist. We;ve > > been doing this for about a year now with perfect results .. > > > > Alain > > > > PS (Add this to the front of the current error) > > >We did that too and still do something similar on some sites, but I have to >tell you it got damn annoying making sure that there was an error.html page >in every subdirectory, and sub sub directory.We check if there's a site specific error file. If it exists we use it, otherwise we use one in the globals folder:[HIDEIF [FileInfo /error.html][Exists][/FileInfo]=T][INCLUDE file=^error.html][/HIDEIF][SHOWIF [FileInfo /error.html][Exists][/FileInfo]=T][INCLUDE file=/error.html][/SHOWIF]This code works for Mac servers, but needs tweaking if you want to use it on a Win server, since the root folder is the Webcat folder and not the site folder there IIRC. -- ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Idéer AB SE-200 39 Malmoe Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se------------------------------------------------------------- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [showif],[refferer],[include] in errormessages.db (Joe D'Andrea 2002)
  2. Re: [showif],[refferer],[include] in errormessages.db (Alex McCombie 2002)
  3. Re: [showif],[refferer],[include] in errormessages.db (Alex McCombie 2002)
  4. Re: [showif],[refferer],[include] in errormessages.db (Christer Olsson 2002)
  5. Re: [showif],[refferer],[include] in errormessages.db (Alain Russell 2002)
  6. Re: [showif],[refferer],[include] in errormessages.db (Lester Emo 2002)
  7. Re: [showif],[refferer],[include] in errormessages.db (Alex McCombie 2002)
  8. Re: [showif],[refferer],[include] in errormessages.db (Alain Russell 2002)
  9. Re: [showif],[refferer],[include] in errormessages.db (Alex McCombie 2002)
  10. Re: [showif],[refferer],[include] in errormessages.db (John Peacock 2002)
  11. Re: [showif],[refferer],[include] in errormessages.db (Clint Davis 2002)
  12. Re: [showif],[refferer],[include] in errormessages.db (Larry Goodhew 2002)
  13. Re: [showif],[refferer],[include] in errormessages.db (Alex McCombie 2002)
  14. Re: [showif],[refferer],[include] in errormessages.db (Lester Emo 2002)
  15. Re: [showif],[refferer],[include] in errormessages.db (Alex McCombie 2002)
  16. Re: [showif],[refferer],[include] in errormessages.db (Alex McCombie 2002)
  17. Re: [showif],[refferer],[include] in errormessages.db (Lester Emo 2002)
  18. Re: [showif],[refferer],[include] in errormessages.db (Alex McCombie 2002)
  19. Re: [showif],[refferer],[include] in errormessages.db (Gary Krockover 2002)
  20. [showif],[refferer],[include] in errormessages.db (Lester Emo 2002)
>On 11/1/02 2:27 PM, Alain Russell wrote: > > > We do this in our errormessages.db. > > > > [showif [fileinfo file=/error.html][exists][/fileinfo]=T][redirect > > /error.html][/showif] > > > > So this in the 'template not found' error and you can create individual > > error files for each site and they will only be used if the exist. We;ve > > been doing this for about a year now with perfect results .. > > > > Alain > > > > PS (Add this to the front of the current error) > > >We did that too and still do something similar on some sites, but I have to >tell you it got damn annoying making sure that there was an error.html page >in every subdirectory, and sub sub directory.We check if there's a site specific error file. If it exists we use it, otherwise we use one in the globals folder:[HIDEIF [FileInfo /error.html][Exists][/FileInfo]=T][INCLUDE file=^error.html][/HIDEIF][SHOWIF [FileInfo /error.html][Exists][/FileInfo]=T][INCLUDE file=/error.html][/SHOWIF]This code works for Mac servers, but needs tweaking if you want to use it on a Win server, since the root folder is the Webcat folder and not the site folder there IIRC. -- ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Idéer AB SE-200 39 Malmoe Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se------------------------------------------------------------- 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://search.smithmicro.com/ Christer Olsson

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:

[WriteFile] problems (1997) Upload and WebCat (1998) Is there a way......... (2000) WebCat2b12 - New features for 1.6 users ... (1997) HELP WITH DATES (1997) Bug? (1997) IIS4b2 and WebCatalog b19 (1997) form validator issue (2005) little help (2001) Setting up shop (1997) AppleScript question (1997) Cart Numbers (1997) Hiding Email Addresses (2003) Creating a back button (1999) FORM NONSENSE - WAS: How much is too much? (2002) Tracking System? (1997) Using Plug-In while running 1.6.1 (1997) Cant open pages generated by Webcat (2004) popups, netscape vs explorer (1997) Thanks Grant (1997)