| 1 | It is not recommended that you amend the supplied templates - they |
|---|
| 2 | contain logic and therefore can have bugs, they may have new features |
|---|
| 3 | added in the future and so on. |
|---|
| 4 | |
|---|
| 5 | From OpenGuides 0.41, some of the supplied templates will optionally |
|---|
| 6 | call out to other template fragments that you can put in a custom template |
|---|
| 7 | path (by default custom-templates/). If custom templates do not exist then |
|---|
| 8 | sensible default wording will be used instead. |
|---|
| 9 | |
|---|
| 10 | The names of all custom templates will be prefixed with custom_. |
|---|
| 11 | |
|---|
| 12 | The custom templates currently supported are: |
|---|
| 13 | |
|---|
| 14 | - custom_licence.tt |
|---|
| 15 | Will be included at the top of the page editing form. |
|---|
| 16 | |
|---|
| 17 | - custom_footer_credits.tt |
|---|
| 18 | Will be included in a <div id="footer"> at the base of every page. |
|---|
| 19 | You may wish to take advantage of the supplied TT variables |
|---|
| 20 | - [% delete_link %] |
|---|
| 21 | Will supply a link to delete the page, if and only if your |
|---|
| 22 | wiki.conf has deletion turned on. |
|---|
| 23 | - [% openguides_version %] |
|---|
| 24 | Contains the version of OpenGuides that your site is running on. |
|---|
| 25 | |
|---|
| 26 | - custom_banner.tt |
|---|
| 27 | Will be included in a <div id="banner"> at the top of every page. |
|---|
| 28 | You may wish to take advantage of the supplied TT variables |
|---|
| 29 | - [% site_name %] |
|---|
| 30 | Contains the value supplied in wiki.conf as the name of the site. |
|---|
| 31 | |
|---|
| 32 | - custom_node.tt |
|---|
| 33 | Will be included just below the main wiki content in node.tt. |
|---|
| 34 | |
|---|
| 35 | Requests for further custom inserts are welcomed. |
|---|
| 36 | |
|---|
| 37 | If you include your own versions of other (non custom_) templates in |
|---|
| 38 | custom-templates they will override the installed files, and this may |
|---|
| 39 | cause you problems. We would much rather that you let us know what we could |
|---|
| 40 | do to make your customisations possible within custom_ templates. |
|---|