This makes sure that the page is included one time only. There is also the "once" attribute to the include tag. There is also a "root" attribute, that tells jAlbum that the included page is to be found in the root image directory, like this: This allows for simple comment inclusion or for adding special html to some images: Image "foo.jpg" will get text from file "foo.txt" etc. This example includes a text file carrying the same base name as an image. Included pages may contain variables, scriptlets and other include tags. To include pages relative to the output directory, use scriptlets like this: css, the path is relative to the template unless explicitly stated, for example for an include file in the project's root folder If it is relative, jAlbum will first search the image directory, then the current skin directory and finally the common "includes" directory. The page attribute can either be an absolute file path or a relative path. This text will show if the page does not exist This is easily done with the include tag: It is common to want headers/footers/navigation bars or other web elements added to the generated album so that the album better fits to the existing site. If you wish to take several different actions depending on several different values of a variable the ja:switch tag can be more convenient to use than the ja:if tag. ">… You can test for a range of valid Categories These images have been scaled with the high quality setting ">General expression test (slower but flexible) General testingĪny condition can be tested with the following syntax: You can also ‘not exists’ to test for the absence of the variable. This example test for existence of camera flash information: The example adds a link to the next slide in a slide show if there are more slides, if not, the text "at last page" is displayed instead: To prevent this from happening when one can't be certain if a variable exists, test for existence with the following construct. If a variable is unavailable, it will show up empty or unexpanded (in the case of the $variable syntax) in the generated page. Not all jAlbum variables are available at all times. These tags are executed as the album is generated and are not added to the final web page, only their resulting web code is added to the generated pages. jAlbum also provides a set of special tags that can be used in your template files to help you with various tasks. You are probably familiar with ordinary HTML tags.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |