en:user_advanced:gs3_custom_doc_display
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:user_advanced:gs3_custom_doc_display [2016/08/12 01:46] – [Image Slider] kjdon | en:user_advanced:gs3_custom_doc_display [2023/03/13 01:46] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | |||
+ | |||
====== Customisations to Document Display in Greenstone 3 ====== | ====== Customisations to Document Display in Greenstone 3 ====== | ||
- | ==== Image Slider ==== | + | ==== Customizing the Image Slider ==== |
To customize the image slider. Look at the web/ | To customize the image slider. Look at the web/ | ||
If you want to customise things in here for just one collection, add a file eg | If you want to customise things in here for just one collection, add a file eg | ||
- | script/ | + | js/ |
+ | document_scripts is included in the page by the " | ||
Add transform/ | Add transform/ | ||
< | < | ||
- | < | + | < |
- | <script type=" | + | <!-- add in the local customisations --> |
- | <!-- add in the niupepa | + | <script type=" |
- | <script type=" | + | |
</ | </ | ||
- | |||
</ | </ | ||
This adds your new javascript file into the page. | This adds your new javascript file into the page. | ||
- | Note, you can do this for a site, or for a different interface. Just put the documnet.xsl and cusotm-document.js into the appropriate folders for site/ | + | Note, you can do this for a site, or for a different interface. Just put the document.xsl and custom-document.js into the appropriate folders for site/ |
- | Note, if you are adding document.xsl to a new interface, then you should replace // | ||
- | </ | ||
- | + | Image Slider has a filtering option where you can view just part of the pages. You can choose whether to provide filtering options on the section num or the title by adding the following to custom-document.js: | |
- | + | ||
- | Image Slider has a filtering option where you can view just part of the pages. You can choose whether to provide filtering options on the section num or the title using | + | |
< | < | ||
Line 34: | Line 32: | ||
Then titles will be filtered numerically rather than alphabetically. ie 1 will just display page 1 rather than 1, 10, 11 etc. | Then titles will be filtered numerically rather than alphabetically. ie 1 will just display page 1 rather than 1, 10, 11 etc. | ||
+ | If you only want one filtering method, and you don't want to display the radio button, you can add | ||
+ | < | ||
The default display for each page in the slider is the section number followed by the title. To hide the section number you need to add the following to style/ | The default display for each page in the slider is the section number followed by the title. To hide the section number you need to add the following to style/ | ||
Line 53: | Line 53: | ||
See web/ | See web/ | ||
- | |||
- | |||
en/user_advanced/gs3_custom_doc_display.1470966387.txt.gz · Last modified: 2016/08/12 01:46 by kjdon