User Tools

Site Tools


en:user:gs3_list_of_format_options

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
en:user:gs3_list_of_format_options [2023/03/13 01:46] – external edit 127.0.0.1en:user:gs3_list_of_format_options [2024/06/03 23:44] – [Templates] kjdon
Line 65: Line 65:
 Templates are the containers that hold all format statements. The value of ''match'' determines which part of the page content the template applies to. For example,  Templates are the containers that hold all format statements. The value of ''match'' determines which part of the page content the template applies to. For example, 
 ''<gsf:template match="documentNode">template definition </gsf:template>''  matches a documentNode element. ''<gsf:template match="documentNode">template definition </gsf:template>''  matches a documentNode element.
 +
 +==== Other ====
 +
 +The ''display'' ''format'' element can also contain ''<gsf:headMetaTags>'' element. This looks something like the following, and is used to add metadata into the HTML header of the document page.
 +<code>
 +<gsf:headMetaTags>
 +   <gsf:metadata name="dc.Title"/>
 +   <gsf:metadata name="dc.Subject"/>
 +   <gsf:metadata name="dls.Organization"/>
 +   <gsf:metadata name="dc.Author"/>
 +</gsf:headMetaTags>
 +</code>
 +This will output META tags for any of these metadata elements present for the document, like:
 +<code>
 +<META CONTENT="Butterfly Farming in Papua New Guinea" NAME="dc.Title" />
 +</code>
 +  
  
 ===== What can go inside a template? ===== ===== What can go inside a template? =====
Line 170: Line 187:
 |''<gsf:displayItem name='xxx'/>'' |Display the xxx displayItem from the collection's //collectionConfig.xml// file.| |''<gsf:displayItem name='xxx'/>'' |Display the xxx displayItem from the collection's //collectionConfig.xml// file.|
 |''<gsf:interfaceText name='xxx'/>'' | Display the xxx interface text string (from //interface_default.properties// in web/WEB-INF/classes)| |''<gsf:interfaceText name='xxx'/>'' | Display the xxx interface text string (from //interface_default.properties// in web/WEB-INF/classes)|
-|''<gsf:interfaceText name="xxxpropertyFile="file_name"/>'' | | Display the xxx string from the //file_name.properties// file (in web/WEB-INF/classes) (Greenstone version 3.10 and later)| +|''<gsf:interfaceText name='xxxpropertyFile='file_name'/>'' | | Display the xxx string from the //<file_name>.properties// file (in web/WEB-INF/classes) (Greenstone version 3.10 and later)| 
-|''<gsf:collectionText name='xxx'/>'' |Display the xxx from the current collection's //colname.properties// file (found in resources folder inside the collection) |+|''<gsf:collectionText name='xxx'/>'' |Display the xxx from the current collection's //interface_custom.properties// file (found in resources folder inside the collection) | 
 +|''<gsf:collectionText name='xxx' propertyFile='file_name'/>'' |Display the xxx from the current collection's //<file_name>.properties// file (found in resources folder inside the collection) |
  
 ==== Miscellaneous Things ==== ==== Miscellaneous Things ====
en/user/gs3_list_of_format_options.txt · Last modified: 2024/06/03 23:50 by kjdon