source: documented-examples/trunk/garish-e/resources/collectionConfig.properties@ 36369

Last change on this file since 36369 was 36369, checked in by anupama, 21 months ago

Some updates

File size: 2.1 KB
Line 
1name=Custom stylesheet demo collection
2
3dls.Organization=Organizations
4dls.Titles=Titles
5dls.Keyword=How to
6dls.Subject=Subjects
7index_text=Text
8index_document=Book
9index_section=Chapter
10
11shortDescription=<p>This demonstration collection contains the same material as the original Greenstone demo collection, but its appearance has been altered slightly using a custom stylesheet.</p>
12
13description1=<p>Greenstone 3 uses default stylesheets, which can be overridden for all collections in a site or for any particular collection. This documented example collection covers the last case.</p>
14
15description2=<h3>How the collection works</h3><p>The <b>global</b> format statement contains a link to the collection's custom stylesheet, which is located inside the collection:</p><pre>\
16 &lt;xsl:template name=&quot;additionalHeaderContent&quot;&gt; \n\
17 &lt;xsl:variable name=&quot;httpCollection&quot;&gt; \n\
18 &lt;xsl:value-of select=&quot;/page/pageResponse/collection/metadataList/metadata[@name='httpPath']&quot;/&gt; \n\
19 &lt;/xsl:variable&gt; \n\
20 &lt;link href=&quot;{$httpCollection}/style/style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;/&gt; \n\
21 &lt;/xsl:template&gt; \n\
22</pre>
23
24description3=<p>Next, a folder named <i>style</i> is created within the collection and a new text file, called <i>style.css</i>, is created within that folder. The css suffix indicates it's a <i>Cascading Style Sheet</i>. CSS files define the look of web pages such as the colours, borders, fonts, heading styles and more. CSS files are just text files, and can thus be edited with any text editor.</p>
25
26description4=<p>The default Greenstone CSS style sheets define certain styles for all collections, that are <i>overridden</i> for the collection by defining CSS rules within its new custom stylesheet. It is by linking the CSS file in the Greenstone collection's <b>global</b> format statement as above, that the general Greenstone CSS styling rules get overridden at the collection level.</p>
27
28description5=<p>You can quickly learn how to write CSS at <a href="https://www.w3schools.com/css/default.asp">W3schools</a> and other online sites.</p>
29
Note: See TracBrowser for help on using the repository browser.