Template page files names
The processing of page files names is used to ease the navigation between album
pages. If the plug-in meets in the text the parameter with the name equal to
the template page name bracketed in # then plug-in is processing this parameter
the following way:
-
If plug-in meets the page name same as the name of the page currently
processed, then the index of the required page is calculated according to the
expression at the end of the name. The page name with expression at the end
substitutes by the name of the required really created page. The expression at
the end of the page name can be one of the following:
-
++
-
--
-
+N (where N is integral number)
-
-N (where N is integral number)
Example: Lets assume that when the third page of the album with the name
base3.html was created within the template of the page with the name base3.html
the arguments #base-#" and #base++# were met.
<a href="#base--#"> <a href="#base++#">. In
that case, plug-in considering index of the current page (3) will record.
<a href="base2.html"> and accordingly <a
href="base4.html">
-
If the template page name is not coincide with the name of the template page
currently processed, then it is considered there is the image index at the end
of template page name. And the resulting string will contain the page name +
index of image on the page+ album page extension.
Example:
Lets assume that the following string is met onClick="return
showImage('#image0#');">
In template description file it is indicated that template has two pages. First
one has the base.html name and second has image.html name. The page currently
processed has name base and index3 :
base3.html. Lets assume that each album page contains 10 images. So plug-in
considers that upon inquiry of the image with 0 index on the page, it is
necessary to replace it with the image with index 30. (3* 10).
 |
Indexation of the album pages starts from 0.
If the image with index 9 is inquired (the last one on the page 3) then
correspondingly will have 39. so the result will be the following:
onClick="return showImage('image30.html');"> (for 0 index)
|