Writing /var/www/dokuwiki/greenstone-wiki/private/data/log/error/2025-05-02.log failed
en:user:gs2_format_statements
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:user:gs2_format_statements [2016/05/12 00:11] – kjdon | en:user:gs2_format_statements [2023/03/13 01:46] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Greenstone 2 Format Statements====== | + | |
+ | |||
+ | |||
+ | ======Greenstone 2 Formatting====== | ||
=====Site-wide formatting options===== | =====Site-wide formatting options===== | ||
- | These should be placed in //gsdl/ | + | These should be placed in //greenstone2/ |
Syntax: **SiteFormat < | Syntax: **SiteFormat < | ||
Line 13: | Line 16: | ||
=====Collection-specific formatting options===== | =====Collection-specific formatting options===== | ||
- | These should be placed in gsdl/ | + | These should be placed in // |
Syntax: **format < | Syntax: **format < | ||
Line 34: | Line 37: | ||
=====Formatting Lists===== | =====Formatting Lists===== | ||
- | The standard use of format statements is for the lists in search results, classifiers etc. Here is a list of the various lists available for format, and what they control. Note that classifiers are numbered from 1 upwards, in the order that they appear in the config file. | + | The standard use of format statements is for the lists in search results, classifiers etc. Here is a list of the various lists available for format, and what they control. Note that classifiers are numbered from 1 upwards, in the order that they appear in the config file. The value for all of these is a format string. |
^Item^Description^ | ^Item^Description^ | ||
Line 48: | Line 51: | ||
=====Formatstring items===== | =====Formatstring items===== | ||
+ | |||
+ | Format strings (for lists, and document display) can contain html, plus the following special format items. | ||
^Item^Description^ | ^Item^Description^ | ||
Line 122: | Line 127: | ||
|ew| |ends with| | |ew| |ends with| | ||
- | //Note that only eq and ne are available for Greenstone versions 2.60 and earlier.// | ||
Line 132: | Line 136: | ||
===== Additional Resources ===== | ===== Additional Resources ===== | ||
- | As writing format statements can be tricky, we have a [[en:user:sample_format_statements|sample format statements]] page, which provides sample code for the following: | + | As writing format statements can be tricky, we have a [[en:user:gs2_sample_format_statements|sample format statements]] page, which provides sample code for the following: |
- | * [[en:user:sample_format_statements# | + | * [[en:user:gs2_sample_format_statements# |
- | * [[en:user:sample_format_statements#Hiding the "This document has no text" dummy text]] | + | * [[en:user:gs2_sample_format_statements#Hiding the "This document has no text" dummy text]] |
- | * [[en:user:sample_format_statements# | + | * [[en:user:gs2_sample_format_statements# |
- | * [[en:user:sample_format_statements#Reference an associated image]] | + | * [[en:user:gs2_sample_format_statements#Reference an associated image]] |
- | * [[en:user:sample_format_statements#Linking to other sections of a document]] | + | * [[en:user:gs2_sample_format_statements#Linking to other sections of a document]] |
- | * [[en:user:sample_format_statements#Linking to the next or previous search result from a document page]] | + | * [[en:user:gs2_sample_format_statements#Linking to the next or previous search result from a document page]] |
- | * [[en:user:sample_format_statements#Add a Facebook " | + | * [[en:user:gs2_sample_format_statements#Add a Facebook " |
- | * [[en:user:sample_format_statements#Displaying file size in kB or MB]] | + | * [[en:user:gs2_sample_format_statements#Displaying file size in kB or MB]] |
- | * [[en:user:sample_format_statements#Linking documents in different collections together]] | + | * [[en:user:gs2_sample_format_statements#Linking documents in different collections together]] |
en/user/gs2_format_statements.1463011907.txt.gz · Last modified: 2016/05/12 00:11 by kjdon