

Templates in jalbum code#
Double click the thumbnail again, notice that now you see the GUI, not the source code you just wrote! To edit the source code you now must right-click the thumbnail and select 'Edit' (Alt/Opt + ENTER Key) or click on the 'Edit' button between the Explore and Preview buttons. Now to save your edit close it's window and say yes to save the change. There are many popular Skins that are site aware. close the embedIframe class definition Page templates are files that can be used by skins that support web pages, also know as Site aware skins. JCheckBox showPageTitle = new JCheckBox("Show page title", true) // let the user decide if the page title is shown or not

JTextField iframeScrolling = new JTextField("yes",3) // we also want to control scrolling, yes or no values JTextField iframeSRC = new JTextField("") // sets the width of the field within the gui JTextField iframeHeight = new JTextField("900",3) // the figures in quotes are the default values, the last figure JTextField iframeWidth = new JTextField("600",3) // iframeWidth will specify the width of the iframe! Some text fields to hold the information needed, each field has it's own name give it meaningful name, like embedIframe This next block shows the code for the GUI of a template that will use an iframe to embed another web page in your site, a blog for example. This code is similar to that used by a skin's onload.bsh file to create the gui for any skin, it is wrapped in a Java class that 'extends' jAlbum's JWebPageUI. To create fields and settings within a graphical user interface (GUI) we need to insert some code at the beginning of the page. Start by selecting the template and then double click it to open it.

To make an interactive template, like the About.htt in the Turtle skin, we need to make some modifications. The template for the empty-page.htt looks like this (double click to open):Īs it stands, this page can be modified directly by adding your own HTML code just below the line that includes 'keep this'. jAlbum makes it easy to create your own as it comes with an empty template, use the context menu and select "New page" that creates an "empty-page.htt" file. htt, so it can be written with any basic text editor. The page template is just a plain text file saved with the file extension of.
Templates in jalbum skin#
The number and range of pages available is skin dependant. Typical pages are 'About' and 'Contact' but can include sitemaps, best of, tumbler feeds etc. Note, jAbum offers users of site aware skins a default empty page template, if you want to offer your own instead make sure you name the template empty-page.htt. This guide is for those skins that use jAlbum's template pages to add extra pages to an album.
Templates in jalbum how to#
This article will show you how to build a basic template, it does not go in to the detail of styling templates to fit the design of a particular skin. There are many popular Skins that are site aware that come with several page templates. Page templates are files that can be used by skins that support web pages, also know as ' Site aware' skins.
