diff options
author | Marius Halden <marius.h@lden.org> | 2019-10-30 19:28:55 +0100 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2019-10-30 19:28:55 +0100 |
commit | 377bd96aab7cad3434185c30eb908c9da447fe40 (patch) | |
tree | 7ec5527e205d5b62caaa862a7de8cd25199c8bf0 /docs/customising/static-pages.md | |
parent | 56f61b1441070aa0b9ddcfc74aca46c20313609f (diff) | |
parent | 92b253904062edd533e55c22824de6fd01e2f7c1 (diff) |
Merge tag 'v2.6' into fiksgatami-dev
Diffstat (limited to 'docs/customising/static-pages.md')
-rw-r--r-- | docs/customising/static-pages.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/docs/customising/static-pages.md b/docs/customising/static-pages.md new file mode 100644 index 000000000..38ab02d60 --- /dev/null +++ b/docs/customising/static-pages.md @@ -0,0 +1,35 @@ +--- +layout: page +title: Adding static pages +--- + +# Adding static pages + +<p class="lead">How to add your own static pages to your installation.</p> + +If you wish to add a new static page to your site, then you can place a +template file, say `team.html`, in the `templates/web/cobrand/about/` +directory, where `cobrand` should be replaced with your cobrand name (as +explained in [customising FixMyStreet templates](../templates/)). + +The page will then be available to view at `/about/team` on your site. + +Have a look at the existing files in `templates/web/base/about/` for an idea +of the contents of a file – you need a header and a footer include, but other +than that the contents are up to you. + +If you want the page to be available in multiple languages, then name your file +`team-LANG.html` for each language and it will automatically be used. For +example, if your site is available in Welsh and French, you could have +`team-cy.html` and `team-fr.html` + +<hr> + +As a special case, if you create an `about/homepage.html` template file, then +it will be used as the front page of your site, and the normal front page will +instead be available at `/report`. + +<hr> + +If you wish to do more complex pages, or wish to then we recommend setting up +e.g. a WordPress installation running at a subdomain of your site. |