Changeset 36982


Ignore:
Timestamp:
2022-12-07T13:39:55+13:00 (17 months ago)
Author:
kjdon
Message:

updated the sample groupConfig file to use displayItems, including some that use dictionary texts. adding a sample groupConfig dictionary

Location:
main/trunk/greenstone3/web/sites/localsite
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/sites/localsite/groupConfig.xml

    r32554 r36982  
    1616
    1717Describe your groups in groupDescriptions element as shown in the example below.
     18You can do a simple, single language option, using the <title>, <description>, <shortDescription> elements.
     19Or you can use displayItems so that the text can be customised for different languages. Format like that in collectionConfig.xml. DisplayItem text can be directly added, or can come from a dictionary file, eg groupConfig.properties.
     20
    1821Without a matching group element in groupDescriptions, a group will display its group name only.
    1922
     
    2629their home pages will display their list of collections. -->
    2730
     31<groupConfig>
    2832<!--
    29 <groupConfig>
    3033  <hierarchy>
    3134    <group name="demo">
     
    5053    </group>
    5154    <group name="standard">
    52       <title>Standard Demos</title>
    53       <description>These collections are the standard demonstration collections that come with a Greenstone binary release.</description>
    54       <shortDescription>Demonstration collections that come with the Greenstone binary.</shortDescription>
     55      <displayItem name="name" lang="en">Standard Demos</displayItem>
     56      <displayItem name="description" lang="en">These collections are the standard demonstration collections that come with a Greenstone binary release.</displayItem>
     57      <displayItem name="shortDescription" lang="en">Demonstration collections that come with the Greenstone binary.</displayItem>
    5558    </group>
    5659    <group name="dec">
    57       <title>Documented Example Collections</title>
    58       <description>These documented example collections describe how they are constructed on their about page. Useful for learning about different Greenstone features.</description>
    59       <shortDescription>Collections that describe how they were built.</shortDescription>
     60      <displayItem name="name" dictionary="groupConfig" key="dec.title"/>
     61      <displayItem name="description" dictionary="groupConfig" key="dec.description"/>
     62      <displayItem name="shortDescription" dictionary="groupConfig" key="dec.shortDescription"/>
    6063    </group>
    6164  </groupDescriptions>
    62 </groupConfig>
    63     -->
     65-->
     66   
    6467
    6568<!-- If you want to put your collections into a specific order, you can list them in the hierarchy. Any unmentioned collections will be listed at the end. -->
    6669
    6770<!--
    68 <groupConfig>
     71
    6972  <hierarchy>
    7073    <collection name="solr-jdbm-demo"/>
     
    7275    <collection name="paradise-gardens"/>
    7376  </hierarchy>
    74 </groupConfig>
     77
    7578-->
    7679
    77 <groupConfig>
     80
    7881</groupConfig>
Note: See TracChangeset for help on using the changeset viewer.