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] contextError: Unable to access file. Unable to delete '../photofile/Thumb/ nameoffile .Ignroing [DeleteFile] contextError: Unable to access file. Unable to delete '../photofile/original/ nameoffile .Ignroing [DeleteFile] contextAs 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]
 |
|
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 Millertmiller@thehawkeye.comOn 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:
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] contextError: Unable to access file. Unable to delete '../photofile/Thumb/ nameoffile .Ignroing [deletefile] contextError: Unable to access file. Unable to delete '../photofile/original/ nameoffile .Ignroing [deletefile] contextAs 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] |
|
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 Millertmiller@thehawkeye.comOn 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: [REPLACE] inside [FOUNDITEMS] (1998)
HELP WITH DATES (1997)
WC Host Needed (2000)
logic help (1998)
Referrer (2000)
It just Does't add up!!! (1997)
Not really WebCat- (1997)
Checkboxes (1998)
[isfile] ? (1997)
Appending space (1998)
Image maps/Webcat (1997)
Busted at the Border (1998)
FYI-Upcoming Authorize.Net Payment Gateway Enhancements andChang (2002)
Virtual hosting and webcatNT (1997)
Trigger alternatives please ... (2004)
Archive (Zip, Sit, Tgz) (2004)
Cookie Crumble (1998)
Need relative path explanation (1997)
RE: Problems with shopping cart (1997)
Emailer (1999)