gkidd
gkidd

Reputation: 199

Using folders to keep images neat and organized

So I'm used to this kind of sorting my source files, but I can't seem to be able to find a solution to this problem in Xpages. It would be great if I can store my images like for example: UI images in "ui", layout images in "layout" and so on... Is this possible? Or maybe some kind of workaround?

Thank you!

Upvotes: 3

Views: 426

Answers (3)

Tim Tripcony
Tim Tripcony

Reputation: 8086

In Package Explorer (or Eclipse Navigator), locate the WebContent folder. This is treated as the "root" of the NSF when an XPage is accessed. If your images are already stored on your hard drive in the folder structure you want to create, you can literally just drag the top-level folder to WebContent, and it'll preserve the exact same structure. You can also manually add folders to WebContent (or any subfolder) using the context menu.

Upvotes: 3

Tommy Valand
Tommy Valand

Reputation: 868

In image resources, you can also use "virtual folders" to organize the image files.

E.g. If you have a header image named "header.png". Rename to "layout\header.png".

When you reference this image from the web browser, the path will be: http://somedomain.com/path/to/db.nsf/layout/header.png

Upvotes: 5

stwissel
stwissel

Reputation: 20394

Use the Eclipse Navigator view (add it to your perspective) - there you should be able to create a folder in the images. What works definitely is to use webDAV for design files

Upvotes: 0

Related Questions