Organization of a skin

The file and directory structure of a skin directory is as follows:


[Skin name]

-— Property file containing meta information (Properties: author, username, company, version, creationDate, lastModifiedDate, description, homePage, requiredJalbumVersion, autoWidgetInjection, fullSiteSupport, fullVideoSupport, skinFamily (v14+), preventCopy (v14+) and makeWebLocationSlides (v14+). See API for full details.
- index.htt1 — Template file for index pages.
- slide.htt — Template file for slide show pages (was mandatory until v8.6)
- embed.htt — Template file for customizing album embedding. Since v10
- frameset.htt — Template file to describe albums that uses frames
- common.css — Common style sheet file (intended to be shared by multiple styles). Will be processed and added to the "res" directory of the generated album. (since v8.5.3)
- hints.jap2 — File containing recommended skin presets. Use if skin is intended to have a certain image size for instance. File format is simply a subset of a jAlbum project file.
- init.bsh — BeanShell script that is executed on album generation
- predir.bsh — BeanShell script that is executed before an album directory has been processed (since 14.1)
- postdir.bsh — BeanShell script that is executed after an album directory has been processed (since 8.5.3)
- finally.bsh — BeanShell script that is executed after album generation (since v8.0). Also see executedNormally variable
- onload.bsh3 — BeanShell script that is executed on skin selection/loading
- preview.jpg — Preview image

Note, As an alternative to BeanShell (.bsh) JavaScript (.js) files can be used.

- folder.png — Icon used for directory links
- movie.png — Icon used for movie links
- (additional images and files that you need. All are copied to the res directory of generated albums)

- (style sheet files. Example "bright.css". Will appear for selection in jAlbum. The selected file will be processed and added as style.css in the res directory of the generated album).
- Style-specific resource directories (same base name as style file. Example "bright"). Resource files put here have precedence over those put in the general "res" directory.
-Style specific preview images (same base name as style file. Example "bright.jpg")
- Style specific hints2 (same base name as style file. Example "bright.jap"). Applied when skin is loaded and when user changes style. See hints.jap. Since v8.6

- Skins may add additional page template files like "Contact.htt" or "About.htt" here. These will be made available to users to pick from via jAlbum's context menu and copied on request from the skin to the user's album project. Since 10.6

- — Property file(s). Stores text strings for a certain language for multilingual skins (UTF-8 encoded). The language part of the file name is a lowercase ISO two character code

- Java class files (compiled scripts in order to gain speed for instance)
- SkinModel

- Java class files packaged as .jar files (usually 3:rd party libraries).

1 Mandatory file or folder

2 You should generally not use hints for other things than image sizes and thumbnail sizes, rows and columns. Specifically don't use hints to change directories or scaling quality as this confuses the user.

3 Default values should always be specified either within the GUI code and/or in