Image resource folders

Is it possible to put image resources in folders in a Domino database design ? (Rather than just having a flat list of images in the resource list). So that the image can be referenced like this xxx.nsf/abc/xyz/imageName.gif.

Same question for JS and CSS files… but less so.

Subject: the only way at the moment…

is as has been suggested to include the slashes in the name.

It is, however, something we’re looking at for the future.

Subject: Just give the resource a name with slashes/backslashes in, and voila!

You may very well name the resource with slashes, such as;

/images/mainpage/masthead.png

You will however only see your resources in a flat view, not in folder-like view

Bob

Subject: Yes, I did think of that… but it means renaming every resource…

The designers deliver the images to us in a set of folders in the template HTML (which is to be expected in a normal web development environment). I don’t particularly want to manually rename every resource in the set (of which there are very many… ). Even if I could import the folder and have the resources automatically named after the folder structure in the way you suggest it would help…

Subject: You could write a plugin to do this…

Domino Designer 8.5 and later, contains an API documented in the Designer help, to add your own functions. You could code this up yourself in Java. You might have to use DXL for creating placeholder image design elements which you then populate using IFile…setContents, but it’s doable.

If you don’t want to get into the complexities of the Eclipse side of things, you could also code it in LotusScript or Java to run in the Notes client; however, then you would have to DXL-encode the entire design element including base-64 encoded image data. The LotusScript Gold Collection has examples of this kind of coding; it’s not hard, but it might be slow.