Re: [WebDNA] Adding Graphics to Directory

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102564
interpreted = N
texte = In a nutshell, SiteBuilder is a great solution for quick sites, but I want/need to learn how to build my own custom solutions eventually. The directory is 'Good enough' to get us started at this point and then have a more detailed discussion about adding functions later so this will be an ongoing project. The SB sites are pretty complicated for someone who is just learning. They want a business directory. So I added some fields to map the address, etc. After locking myself in a closet at home so no one would bother me, I got the code to add the photos and display them figured out too. The only problem I have now is when I upload an image to add it to the folder of available images ( directoryfiles ) it works and uploads the images, but I get the following error on the resulting page: Error: Unable to access file. Unable to delete '../photofile/ nameoffile .Ignroing [DeleteFile] context Error: Unable to access file. Unable to delete '../photofile/Thumb/ nameoffile .Ignroing [DeleteFile] context Error: Unable to access file. Unable to delete '../photofile/original/ nameoffile .Ignroing [DeleteFile] context As far as I can tell, it is using java script to do the actual upload. Here is the code I am using to do the upload (copied from another page and tweaked): [!]--------------------------------------------------------------------- [/!] [!] Entry added to allow photo uploads from Directory pages [/!] [!]--------------------------------------------------------------------- [/!] [!]=================== Upload Directory Photo ==============================[/!] [Showif [datasource]^directory]
Please specify a photo to upload for your directory:
[!]Add Photos to Database[/!] Choose file:

  
Here is the java code from the page I copied the form from: [Text]GraphicPath=[lookup db=prefs.db&value=PRODUCT_GRAPHIC_PATH&lookInField=PREF&returnField=valu e][/Text] I also had to modify the GraphicPath using DIRECTORY_GRAPHIC_PATH pref I added to the prefs.db. I don't currently have the java code at the top of the edit_database.inc file. Do I need it there and that is what is causing the errors? This is already better than the product we are paying for now. At least we can edit the records in a web browser in WebDNA and it's free. I'm learning slowly, but surely. One day I hope to be able to start from scratch with custom stuff, but that is a long way off right now. Thanks Govinda. Tony Miller tmiller@thehawkeye.com On May 15, 2009, at 3:09 PM, Govinda wrote: > Tony, I have never played with sitebuilder at all since we always > built everything custom here.. (always special weird deal needs), > BUT I always have the desire to help when I perceive the question > is within range of what I know. If you just want a quick tweak to > existing sitebuilder templates to get quick results, then I'll hush > up, but if you want a dialogue leading to you learning how to > manipulate things all you like to satisfy this and future needs, > then see if you can describe what you want in more generic terms > (assuming the audience has not seen those sitebuilder templates) > and then we can suss out some solutions. Others may chime in too > in various ways.. I am only speaking for my own participation. > > -Govinda > > > On May 15, 2009, at 1:35 PM, Tony Miller wrote: > >> I am trying to add graphics to the directory listings that behave >> similar to the graphics on the products pages. >> >> I have 6.0a commerce edition and am working in a sitebuilder site. >> It looks like it will take a major overhaul to the database, admin >> forms and display pages. >> >> If it's possible to add some include calls to add the >> functionality, that would save me a bunch of time. If not, I'll >> keep digging. >> >> Thanks >> >> Tony Miller >> tmiller@thehawkeye.com > > --------------------------------------------------------- > 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/ 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)
In a nutshell, SiteBuilder is a great solution for quick sites, but I want/need to learn how to build my own custom solutions eventually. The directory is 'Good enough' to get us started at this point and then have a more detailed discussion about adding functions later so this will be an ongoing project. The SB sites are pretty complicated for someone who is just learning. They want a business directory. So I added some fields to map the address, etc. After locking myself in a closet at home so no one would bother me, I got the code to add the photos and display them figured out too. The only problem I have now is when I upload an image to add it to the folder of available images ( directoryfiles ) it works and uploads the images, but I get the following error on the resulting page: Error: Unable to access file. Unable to delete '../photofile/ nameoffile .Ignroing [deletefile] context Error: Unable to access file. Unable to delete '../photofile/Thumb/ nameoffile .Ignroing [deletefile] context Error: Unable to access file. Unable to delete '../photofile/original/ nameoffile .Ignroing [deletefile] context As far as I can tell, it is using java script to do the actual upload. Here is the code I am using to do the upload (copied from another page and tweaked): [!]--------------------------------------------------------------------- [/!] [!] Entry added to allow photo uploads from Directory pages [/!] [!]--------------------------------------------------------------------- [/!] [!]=================== Upload Directory Photo ==============================[/!] [Showif [datasource]^directory]
Please specify a photo to upload for your directory:
[!]Add Photos to Database[/!] Choose file:

  
Here is the java code from the page I copied the form from: [text]GraphicPath=[lookup db=prefs.db&value=PRODUCT_GRAPHIC_PATH&lookInField=PREF&returnField=valu e][/Text] I also had to modify the GraphicPath using DIRECTORY_GRAPHIC_PATH pref I added to the prefs.db. I don't currently have the java code at the top of the edit_database.inc file. Do I need it there and that is what is causing the errors? This is already better than the product we are paying for now. At least we can edit the records in a web browser in WebDNA and it's free. I'm learning slowly, but surely. One day I hope to be able to start from scratch with custom stuff, but that is a long way off right now. Thanks Govinda. Tony Miller tmiller@thehawkeye.com On May 15, 2009, at 3:09 PM, Govinda wrote: > Tony, I have never played with sitebuilder at all since we always > built everything custom here.. (always special weird deal needs), > BUT I always have the desire to help when I perceive the question > is within range of what I know. If you just want a quick tweak to > existing sitebuilder templates to get quick results, then I'll hush > up, but if you want a dialogue leading to you learning how to > manipulate things all you like to satisfy this and future needs, > then see if you can describe what you want in more generic terms > (assuming the audience has not seen those sitebuilder templates) > and then we can suss out some solutions. Others may chime in too > in various ways.. I am only speaking for my own participation. > > -Govinda > > > On May 15, 2009, at 1:35 PM, Tony Miller wrote: > >> I am trying to add graphics to the directory listings that behave >> similar to the graphics on the products pages. >> >> I have 6.0a commerce edition and am working in a sitebuilder site. >> It looks like it will take a major overhaul to the database, admin >> forms and display pages. >> >> If it's possible to add some include calls to add the >> functionality, that would save me a bunch of time. If not, I'll >> keep digging. >> >> Thanks >> >> Tony Miller >> tmiller@thehawkeye.com > > --------------------------------------------------------- > 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/ Tony Miller

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:

Re:Navigator 4.01 (1997) Design Help Needed (1998) European Dates (1998) Reversed words (1997) WebCat2.0b15-to many nested [xx] tags (1997) Snake Bites (1997) The IBC root beer has arrived! (1997) Multiple servers and Webcat (1998) Installing WebCat under Linux Q (2000) Nesting format tags (1997) [index] (1997) Database Updates (1997) Unix webcat perms & multiple versions of same db in cacheissue (2000) WebCatalog Started!! Now What?? (2000) b12 cannot limit records returned and more. (1997) WebCatalog Features (1997) Faxing orders in place of email (1997) Summary layout (1997) PCS Customer submissions ? (1997) Bad URL reference? (1997)