Pages and document names are computed with a system of templates read from the page's title similar to that of the editions.
To edit pages and documents names
See Configure page names.
About template elements
The possible elements used in a template are:
•var: inserts the value of the variable specified by the 'name' attribute (same as for the editions - see example in Editions names ).
•var-number: inserts the value of the numeric variable specified by the 'name' attribute formatted using the formatting string contained in the 'format' attribute - e.g.
<var-number name="number" format="000"/>
inserts the value of the 'number' variable zero-padded to 3 digits (see http://www.w3schools.com/xsl/func_formatnumber.asp for a description of the possible formatting strings)
•var-boolean: inserts the value of the attribute 'true' or the value of the attribute 'false' depending on the value of the boolean variable specified by the 'name' attribute - e.g.
<var-boolean name="leftColor" true="CMYK" false="K"/>
inserts 'CMYK' or 'K' respectively if the variable 'leftColor' is true ('true', '1') or false
•text: inserts the fixed text specified in the 'value' attribute (same as for the editions - see example above).
The available variables are:
•editionDescName: descriptive name of the page's edition.
•editionShortName: short name of the page's edition.
•sectionName: name of the page's section. Empty if the section has the special name '-'.
•zoneName: name of the page's zone. Empty if the zone has the special name '-'.
•number: page number
•leftNumber: page number
•rightNumber: right half page number for double pages. It is just number+1.
•color: boolean, true if the page is full-color. It is the same of 'leftColor'
•leftColor: boolean, true if the left half of the page is full-color. It is the same of 'color'
•rightColor: boolean, true if the right half of the page is full-color (valid only for duble pages).
•id: database id of the page
•logicalPage: boolean, true if the page is a logical one, false if it is physical
•masterName: name of the page's master page
There are four different templates - that are used to generate the descriptive and short name for single and double pages. The templates are read from these attributes of the page's title:
•pageDescName: contains the template used to generate the descriptive name of single pages. If empty the system uses:
<var name="editionDescName"/>
<text value=" "/>
<var name="sectionName"/>
<var-number name="number" format="#"/>
<text value=" "/>
<var name="zoneName"/>
i.e. the edition descriptive name followed by the section name, page number and zone name.
•pageShortName: contains the template used to generate the short name of single pages. If empty the system uses:
<var name="sectionName"/>
<var-number name="number" format="#"/>
<text value=" "/>
<var name="zoneName"/>
i.e. the section name followed by the page number and the zone name.
•doublePageDescName: (only for pages, not for documents) contains the template used to generate the descriptive name of double pages. If empty the system uses:
<var name="editionDescName"/>
<text value=" "/>
<var name="sectionName"/>
<var-number name="leftNumber" format="#"/>
<text value="-"/>
<var-number name="rightNumber" format="#"/>
<text value=" "/>
<var name="zoneName"/>
i.e. the edition descriptive name followed by the section name, left and right page numbers and zone name.
•doublePageShortName: (only for pages, not for documents) contains the template used to generate the short name of double pages. If empty the system uses:
<var name="sectionName"/>
<var-number name="leftNumber" format="#"/>
<text value="-"/>
<var-number name="rightNumber" format="#"/>
<text value=" "/>
<var name="zoneName"/>
i.e. the section name followed by left and right page numbers and zone name.
Examples of default names for pages in the edition 'DH 2/10/2010':
•Page 1 in section '-', zone '-': descriptive name 'DH 2/10/2010 1', short name '1'.
•Page 7 in section 'A', zone 'North': descriptive name 'DH 2/10/2010 A1 North', short name 'A1 North'.
•Double page 16 in section 'A' zone 'South': descriptive name 'DH 2/10/2010 A16-17 South', short name 'A16-17 South'.