![]() |
web generation
iphlex > webphlex > documentation > web generation |
show contents
hide contents |
|
| ||
| ||
|
| ||||
|
top of page
| ||||
|
names of generated files
The names used for generated files are built up during generation using data provided by the system (page numbers, image file names etc.) and file names, prefixes, suffixes and extentions provided by the user.
When more than one language is in use, the language code is added to the end of the filename, preceded by a suffix if required.
The generated filenames can be converted to lower case if required.
| |||
|
top of page
| |||
|
file names for main pages
The name of the first main page is specified for the page group, and the page number is added onto the end to make the actual filename used.
E.g. if the name of the first page is mainpage_, and the extention for generated files is html, the names generated for the various main pages will be mainpage_1.html, mainpage_2.html, etc.
A minimum number of decimals can be specified for the page number component. If this is set at 3, the files generated would be called mainpage_001.html, mainpage_002.html, etc.
It is also possible to suppress the page number component for the first page. This is especially useful when the name of the first page is index: the first file will then be called index.html instead of index1.html.
| |||
|
top of page
| |||
|
file names for detail pages
The names of the detail pages can be generated in two ways, using as a basis either the name of the main (image) file for the page, or a unique number generated by the system. In either case this can be preceded and/or followed by a prefix and/or suffix provided by the user.
Using the name of the main (image) file name as a basis, with prefix det_, and extention html, the detail page for the element with data file image001.jpg would be det_image001.html.
When the same data file can be used in more than one element, this would result in detail pages with identical names. To avoid this, an incremental number is added to the filename. A suffix can be specified, which will be placed between the normal filename and the incremental number, for which a minimum number of decimals can also be specified. Using the same example, with a filename sequence suffix of _nr and a minimum number of decimals of 2, the second detail page using the same image would be called det_image001_nr01.html.
Using a generated number as a basis for detail page names, with a minimum number of decimals of 5, the file names would be det_00001.html, det_00002.html, etc. Note that these generated numbers are only unique within the page group; where a totally unique number is required, the element number can be used: this is unique throughout the system.
| |||
|
top of page
| |||
|
file names for extra pages
The names of extra pages generated for each main page and for each detail page, have the same basis as the names of the main pages (i.e. the page number) and detail pages (i.e. the data file name or a generated unique number), respectively. However, each extra page specifies its own prefix, suffix and extention.
For an extra page generated once for the whole page group, the file name and extention are simply specified by the user. E.g. for a page group using frames, the extra page generating the frameset page could be given the name index.html.
| |||
|
top of page
| |||
|
file names for different languages
When more than one language is in use, the names of files generated in a language other than the default language are extended by adding the language code to the end of the filename, preceded by a suffix if required.
For instance if a page group is being generated in English (code 'ENG') and Dutch (code 'NL'), with English as the default language, the language filename suffix is _ and the name of the first main page is index.html, then this will be used as the name for the English version, whereas the Dutch version will be called index_NL.html.
| |||
|
top of page
| |||
| iphlex > webphlex > documentation > web generation | Copyright © 2006 iphlex systems |