Ignore:
Timestamp:
2009-04-17T11:00:54+12:00 (15 years ago)
Author:
kjdon
Message:

updated extra.dm and collect.cfg for current macros, matching extra and the description, changing paths to work with the collection inside a collect group

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documented-example-collections/trunk/garish-e/macros/extra.dm

    r18738 r19029  
    4040## macros can have optional parameters, that make them more specific.
    4141## For example, you could have _macro_ {general case} as well as
    42 ## _macro_ [c=garish] {For garish only} for when the "c" argument (which means
    43 ## the collection) is set to "garish". Or _macro_ [l=fr] {french case} for
     42## _macro_ [c=garish-e] {For garish-e collection only} for when the
     43# "c" argument (which means the collection) is set to "garish-e".
     44## Or _macro_ [l=fr] {french case} for
    4445## when the language is set to French. This is how we cope with different
    4546## language interfaces.
    4647
    4748## Collection specific macros put into the main macro files must have a
    48 ## collection parameter ([c=garish]), otherwise they will apply to all
     49## collection parameter ([c=garish-e]), otherwise they will apply to all
    4950## collections. Macros in a collection's extra.dm do not need this parameter.
    5051
     
    5657## help see the effect of changes of these macros.
    5758
    58 ## _httpcimg_ is a macro that expands to the images directory of the current
    59 ## collection. Any collection images or stylesheets should be put there.
     59## _httpcimages_ is a macro that expands to the images directory of the
     60## current collection. Any collection images or stylesheets should be put
     61## there.
    6062
    6163## The macros below modify the appearance of a specific greenstone collection.
     
    6769## here as a demonstration.
    6870##
    69 ## Edit the file images/garish/style.css to change the colours and fonts.
     71## Edit the file images/garish-e/style.css to change the colours and fonts.
    7072
    7173
     
    7678## of these macros are in the file base.dm (and in the language-specific
    7779## macro files such as english.dm and french.dm)
    78 
    7980
    8081## These 2 macros are used for highlighting text that matched a query when
     
    138139#}
    139140
    140 #To keep most of the standard greenstone style, and just override a few style declarations, we can define _collectionspecificstyle_, which is included in the default _cssheader_ macro. The title of a stylesheet link must be 'Greenstone Style', in order for it to be used in conjunction with the main stylesheet.
    141 
    142 # Here we include the garish collection's stylesheet, which defines the page color to pink.
    143 We also remove the background image for the page to get rid of the green swirly bar, and specify a new (blue) background image for hover (mouse over) on the navigation bar buttons
     141## To keep most of the standard greenstone style, and just override a few
     142## style declarations, we can define _collectionspecificstyle_, which is
     143## included in the default _cssheader_ macro. The title of a stylesheet
     144## link must be 'Greenstone Style', in order for it to be used in
     145## conjunction with the main stylesheet.
     146
     147## Here we include the garish-e collection's stylesheet, which defines the
     148## page color to pink.
     149## We also remove the background image for the page to get rid of the green
     150## swirly bar, and specify a new (blue) background image for hover
     151## (mouse over) on the navigation bar buttons
    144152
    145153_collectionspecificstyle_ {
     
    148156<style>
    149157body.bgimage \{ background-image: none; \}
    150 span.navlink:hover \{ background-image: url("_httpcimages_/bg_blue.gif"); \}
     158a.navlink:hover \{ background-image: url("_httpcimages_/bg_blue.gif"); \}
    151159</style>
    152160
     
    165173## Just leave in the home button
    166174_pagebanner_  {
     175<div id="banner">
    167176<div class="pageinfo">
    168177<p class="bannerlinks">_homelink_</p>
     178</div>
    169179</div>
    170180}
     
    188198<!-- start of custom about:content -->
    189199_navigationbar_
     200<div class="document">
    190201_textabout_
    191202
     203<div class="section">
    192204<h3>_help:textsimplehelpheading_</h3>
    193205_help:simplehelp_
    194 
     206</div>
     207</div>
    195208<!-- end of custom about:content -->
    196209}
     
    205218
    206219## This is similar to the default, except we don't centre the _navigationbar_
    207 ## and we've removed the green bars and search history
     220## and we've removed one of the green bars
    208221_content_  {
    209222<!-- start of custom query:content -->
    210223_navigationbar_
    211224
     225<div class="document">
     226<div class="queryform">
    212227<center>
    213228_If_(_cgiargct_,_selectqueryform_,_queryform_)
    214229</center>
    215 _If_(_searchhistorylist_,<center>_iconsearchhistorybar_</center><br>
     230</div>
     231_If_(_searchhistorylist_,<center>_iconsearchhistorybar_</center><br />
    216232<center>
    217233_searchhistorylist_
    218234</center>)
    219 _If_(_cgiargq_,<small>_freqmsg_ _textpostprocess_</small><br>_resultline_,)
    220 <br>
     235_If_(_cgiargq_,<small>_freqmsg_ _textpostprocess_</small><br />_resultline_,)
     236<br />
    221237<!-- end of custom query:content -->
    222238}
     
    252268<!-- start of custom document:content -->
    253269_navigationbar_
    254 <p>
    255 <center>
     270
     271_If_(_phindclassifier__collageclassifier_,
     272<p style="text-align: center;">
    256273_phindclassifier_
    257274_collageclassifier_
    258 </center>
     275</p>
     276)
     277
     278_If_("_cgiargcl_" eq "search",
     279<ul id="searchresults">
     280_prevsearchresult_
     281_nextsearchresult_
     282</ul>)
     283
     284<div class="document">
    259285<!-- end of custom document:content -->
    260286}
Note: See TracChangeset for help on using the changeset viewer.