Re: [WebDNA] Adding Graphics to Directory

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102573
interpreted = N
texte = Correct; you'll get that error if the file is not found. Terry >Dan, > >I'll get better at the detail part of this. I promise. > >OS 10.4.11 Server >WebDNA Commerce Edition 6.0a >Site is a SiteBuilder site > >WebDNA server is running as root > >I created a directory to hold the directory-related art: >The 'directoryfiles' folder is: >Owner:root:RW >Group:www:RW >Everyone:Readonly > >The original'photofiles' folder is: >Owner:root:RW >Group:www:RW >Everyone:Readonly > >Here's the code I added to accommodate the new directory: > >[!]=====================================================================[/!] >[!] Get target path info [/!] >[!]=====================================================================[/!] >[Showif [graphicpurpose]=directory] >[Text]TargetPath=directoryfile/original/[/Text] >[/Showif] >[Showif [graphicpurpose]=Photos] >[Text]TargetPath=photofile/original/[/Text] >[/Showif] >[Showif [graphicpurpose]=Layout] >[Text]TargetPath=[lookup >db=prefs.db&value=LAYOUT_GRAPHIC_PATH&lookInField=PREF&returnField=value][/Text] >[/Showif] >[Showif [graphicpurpose]=Product] >[Text]TargetPath=[lookup >db=prefs.db&value=PRODUCT_GRAPHIC_PATH&lookInField=PREF&returnField=value][/Text] >[/Showif] >[Showif [graphicpurpose]=directory] >[Text]TargetPath=[lookup >db=prefs.db&value=DIRECTORY_GRAPHIC_PATH&lookInField=PREF&returnField=value][/Text] >[/Showif] >[Showif [graphicpurpose]=AdditionalPages] >[Text]TargetPath=additionalPages/[/Text] >[/Showif] > >It seems to be defaulting to look in the photofiles directory. These >files are not in that directory so it can't find them, thus the >error? > >Tony Miller >tmiller@thehawkeye.com > > > >On May 18, 2009, at 3:59 PM, Dan Strong wrote: > >> Tony what platform/webserver are you using? >> -Dan >> >> >> >> On Mon, 18 May 2009 15:52:03 -0500 >> Tony Miller wrote: >>> Dan, >>> Permissions on the server itself or permissions for users and >>>groups within WebDNA? The folder is read/write for everyone and >>>it still won't work. >>> Tony Miller >>> tmiller@thehawkeye.com >>> On May 18, 2009, at 1:33 PM, Dan Strong wrote: >>>> "Error: Unable to access file. Unable to delete 'bah blah blah..." >>>> is a permissions issue. -Dan >>> --------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us >>> old archives: http://dev.webdna.us/TalkListArchive/ >> >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> old archives: http://dev.webdna.us/TalkListArchive/ > >--------------------------------------------------------- >This message is sent to you because you are subscribed to >the mailing list . >To unsubscribe, E-mail to: >archives: http://mail.webdna.us/list/talk@webdna.us >old archives: http://dev.webdna.us/TalkListArchive/ -- Terry Wilson | terry@terryfic.com | http://terryfic.com http://WhosComing.com - a simplified, affordable online reservation system http://TightJacket.com -- stylish protection for your laptop -------------------------------------------------------------------------- Attitude is the only difference between ordeal and adventure. Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Adding Graphics to Directory (Donovan Brooke 2009)
  2. Re: [WebDNA] Adding Graphics to Directory (Terry Wilson 2009)
  3. Re: [WebDNA] Adding Graphics to Directory (Tony Miller 2009)
  4. Re: [WebDNA] Adding Graphics to Directory ("Dan Strong" 2009)
  5. Re: [WebDNA] Adding Graphics to Directory (Tony Miller 2009)
  6. Re: [WebDNA] Adding Graphics to Directory (Govinda 2009)
  7. Re: [WebDNA] Adding Graphics to Directory ("Dan Strong" 2009)
  8. Re: [WebDNA] Adding Graphics to Directory (Tony Miller 2009)
  9. Re: [WebDNA] Adding Graphics to Directory (Govinda 2009)
  10. [WebDNA] Adding Graphics to Directory (Tony Miller 2009)
Correct; you'll get that error if the file is not found. Terry >Dan, > >I'll get better at the detail part of this. I promise. > >OS 10.4.11 Server >WebDNA Commerce Edition 6.0a >Site is a SiteBuilder site > >WebDNA server is running as root > >I created a directory to hold the directory-related art: >The 'directoryfiles' folder is: >Owner:root:RW >Group:www:RW >Everyone:Readonly > >The original'photofiles' folder is: >Owner:root:RW >Group:www:RW >Everyone:Readonly > >Here's the code I added to accommodate the new directory: > >[!]=====================================================================[/!] >[!] Get target path info [/!] >[!]=====================================================================[/!] >[Showif [graphicpurpose]=directory] >[text]TargetPath=directoryfile/original/[/Text] >[/Showif] >[Showif [graphicpurpose]=Photos] >[text]TargetPath=photofile/original/[/Text] >[/Showif] >[Showif [graphicpurpose]=Layout] >[text]TargetPath=[lookup >db=prefs.db&value=LAYOUT_GRAPHIC_PATH&lookInField=PREF&returnField=value][/Text] >[/Showif] >[Showif [graphicpurpose]=Product] >[text]TargetPath=[lookup >db=prefs.db&value=PRODUCT_GRAPHIC_PATH&lookInField=PREF&returnField=value][/Text] >[/Showif] >[Showif [graphicpurpose]=directory] >[text]TargetPath=[lookup >db=prefs.db&value=DIRECTORY_GRAPHIC_PATH&lookInField=PREF&returnField=value][/Text] >[/Showif] >[Showif [graphicpurpose]=AdditionalPages] >[text]TargetPath=additionalPages/[/Text] >[/Showif] > >It seems to be defaulting to look in the photofiles directory. These >files are not in that directory so it can't find them, thus the >error? > >Tony Miller >tmiller@thehawkeye.com > > > >On May 18, 2009, at 3:59 PM, Dan Strong wrote: > >> Tony what platform/webserver are you using? >> -Dan >> >> >> >> On Mon, 18 May 2009 15:52:03 -0500 >> Tony Miller wrote: >>> Dan, >>> Permissions on the server itself or permissions for users and >>>groups within WebDNA? The folder is read/write for everyone and >>>it still won't work. >>> Tony Miller >>> tmiller@thehawkeye.com >>> On May 18, 2009, at 1:33 PM, Dan Strong wrote: >>>> "Error: Unable to access file. Unable to delete 'bah blah blah..." >>>> is a permissions issue. -Dan >>> --------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us >>> old archives: http://dev.webdna.us/TalkListArchive/ >> >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> old archives: http://dev.webdna.us/TalkListArchive/ > >--------------------------------------------------------- >This message is sent to you because you are subscribed to >the mailing list . >To unsubscribe, E-mail to: >archives: http://mail.webdna.us/list/talk@webdna.us >old archives: http://dev.webdna.us/TalkListArchive/ -- Terry Wilson | terry@terryfic.com | http://terryfic.com http://WhosComing.com - a simplified, affordable online reservation system http://TightJacket.com -- stylish protection for your laptop -------------------------------------------------------------------------- Attitude is the only difference between ordeal and adventure. Terry Wilson

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:

ListFiles (1998) WebCat2 - Getting to the browser's username/password data (1997) can we get string variables? (1998) Multiply prices (1997) Checking Webdna is running (2007) Trying to append from within a single template file (2005) PIXO support (1997) RE: Emailer prefs in two places ... (1997) [WebDNA] Emailer & SMTP (2009) Three new problems, maybe a fourth (1997) Late on Friday.... brain fried (2002) Payment Processors (2005) RE: Displaying Location (1997) Off-topic: Cheap hosting (but not webdna) ... (2002) [WriteFile] problems (1997) WebCommerce: Folder organization ? (1997) Is there an alternative to emailer? (1999) [WebDNA] Clean URLS job - will pay (2010) [no_cache]?! (2000) database files in secure folder (1997)