Hi
I can load a ‘Help.gif’ image and access it from a web page. Using the properties box, I can change the name of the image to for example:
images\Help.gif
Using such a name helps if the web page that references the image is coded to access images in a folder called ‘images’. This is often the case if a web designer has used a tool such as DreamWeaver etc.
The problem is that if the web designer gives me an ‘images’ folder with 200 images then renaming each image is not practical.
Do you know an easy way of loading up iamges without renaming each manually?
I couldn’t find a way of setting up folders in the shared resources.
I would prefer not to load up the folder the traditional way into the icons directory of the server.
And finally, attaching them to a document will also require changing the web page references which I’m hoping to avoid. I know it is just a find and replace but it would have to be done for all the web pages.
Suggestions would be much appreciated and so will Lotus adding sub-folder functionality to the shared resources.
With thanks
Bizhan
Subject: Loading images into Image Resources?
Rather than trying to bollocks up the image resources in your database to match the proprietary coding conventions that don’t conform to normal Domino coding conventions, I’d consider creating one url → url remapping document for each database with this problem. If each db has its own dedicated images directory, the remapping doc would remap /path/images to path/database.nsf.
Subject: Try looking at WebDav in the Administrator help database
Don’t know if this will help you, but if you set up WebDav on your server, you can access the domino database from Windows Explorer or directly from Dreamweaver. From there you can just file copy your images. I have never tested it with images, but I once used it to upload 20 GB of mp3’s as file resources (don’t ask why!!:-))
Subject: Keep in mind that WebDAV doesn’t support session authentication
WebDAV is a public standard, and LTPA is not, so session authentication couldn’t possibly be supported by WebDAV.
Subject: Loading images into Image Resources?
Bring the images in as normal, then run a LotusScript agent that selects the image resources as documents (look in Designer Help for NotesNoteCollection), then changes the $Title field on each. Remember, everything in Notes is just a document.
Subject: RE: Loading images into Image Resources?
Hi Stan
So there’s no built in functinality that I’ve missed … that’s a shame.
Your sugestion is good and only needs a very small script. Once I write the agent once, then it can be used for all future occasions.
I just hope, the function will be added to a future version of Domino if it is not already in D7.
Thanks
Bizhan
Subject: RE: Loading images into Image Resources?
Frankly, I think the whole idea of faking folders is silly. The only real use for it is when using a third-party JavaScript library (like a rich text editor or pop-up calendar), anything else is really just being pretentious. When it’s being used correctly, you only need to do it once per thrid-party application, then copy the documents from database to database as needed, so there’s really no reason to add functionality like this to Designer.
Subject: RE: Loading images into Image Resources?
I beg to differ Stan.
Often our clients have web designers whose work they like and have used before. Virtually all medium and large corporations already have established intranets and web sites.
Therefore when we’re asked to add ecommerce or workflow or other processes, we have to work with existing web designs to which we link the new additions. Under these circumstances the designers give us hundreds of little images(including buttons, spacers, backgrounds etc) all in a folder to load up.
As I stated in my first post often the web page references are also to images in a specifically named floder. Faking folders is the only way to avoid a lot of extra work. On that note, I couldn’t find a way of accessing the images programatically using script. Unless I missed it, there is no method that accesses images in a databse, no view selection formula that selects image docs etc.
Any ideas?
Thanks
Bizhan
Subject: Loading images into Image Resources?
A late thank you to all of you for your suggestions. I’ve been away.
I like Bruce’s mapping idea and I will look into WebDAV too.
I think the most low-maintenance solution is a find/replace to remove the image paths from the HTML templates we’re often given.
Thanks again.
Bizhan