As promised, I am going to try and pass on a tip for each day of this week. Starting today with a way to help keep database resources in order.
In conventional web design, where you use many different files, folders are used to organise and structure things like images. For example, you might have a folder called images that contains subfolders called things like "icons", "buttons" and "photos". If you add images as Image Resources to a Domino database you lose this structure and it can become a real mess. Well, there's a nice and simple way to add structure. All you have to do is add the image and then rename it. As below, where I've added an image called folder.gif and renamed it "images/icons/folder.gif":
This helps keep all the images ordered in a logical manner and makes them easier to find. To use them in your HTML you simply add this pseudo-folder-name to that of the image. E.g:
<img src="images/icons/folder.gif" />
Note that we are missing the database name from the URL. That's because I always use this time-saving method.