In the Templates\tutorial_simple folder you will find a file called tutorial_simple.neotmpl. This is the actual NeoPhoto Template file containing the tags that instruct NeoPhoto how to build a “tutorial_simple” web gallery. It is heavily commented to help you figure out how the various tags in the NeoPhoto Template file correspond to the HTML that is generated.
To familiarize yourself with how this process works you should:
open a photo album that has an odd number of photos and create a web photo gallery out of it using the tutorial_simple template. We want you to use an odd number of photos so you can see how incomplete rows on the index page of an photo gallery are handled.
open the generated photo album and do a view->source to get an idea of what the generated HTML looks like.
use the XML editor you've chosen to open the tutorial_simple.neotmpl file and take a look at the tags and embedded HTML.
compare the contents of the tutorial_simple.neotmpl file to the HTML source the was generated to see how the comments in the template file line with the comments in the HTML source.
For the impatient, the NeoPhoto Template file., the generated HTML source and a screenshot are duplicated below.
Taking a simple 5 photo album and generating it in NeoPhoto using the NeoTemplate file above generates the following HTML file:
There are a wealth of comments inside the tutorial_simple.neotmpl file. By comparing how the tags in the neotmpl file line up with the text generated in the resulting HTML file you will get a much better idea of how this works.
The resulting index page appears as follows:
The rest of this chapter will discuss the various tags in the tutorial_simple template. For a complete listing of all the tags, attributes and variables available in the NeoTemplate language please see theNeoTemplate Language Referencein Part 2.