User Tools

Site Tools


en:user:gs2_customization

Differences

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

Link to this comparison view

en:user:gs2_customization [2023/03/13 01:46] – created - external edit 127.0.0.1en:user:gs2_customization [2026/07/20 01:08] (current) – [Add a new static page to the library] kjdon
Line 17: Line 17:
  
  
-**  1. Create a macro file for the new page, in gsdl/macros, eg history.dm**+**1. Create a macro file for the new page, in gsdl/macros, eg history.dm**
  
 A very basic content might look like this: A very basic content might look like this:
Line 37: Line 37:
 The page will be styled like the rest of the library, and have the 'home help prefs' buttons along the top. The page will be styled like the rest of the library, and have the 'home help prefs' buttons along the top.
  
-**  2. Tell the library about the new page ** +**2. Tell the library about the new page** 
  
 Edit greenstone2/etc/main.cfg. Add history.dm to the macrofiles list. This tells the Greenstone library to read in that macro file. Edit greenstone2/etc/main.cfg. Add history.dm to the macrofiles list. This tells the Greenstone library to read in that macro file.
  
-**  3. Link to the new page from the home page**+**3. Link to the new page from the home page**
  
 Edit the _content_ macro in macros/home.dm, adding the link where you want it. The link will look something like Edit the _content_ macro in macros/home.dm, adding the link where you want it. The link will look something like
en/user/gs2_customization.txt · Last modified: by kjdon