Browse Source

Flesh that out

tags/3.19.1
parent
commit
d3b4aec513
Signed by: hristoast GPG Key ID: 5FC7664AD47AA1C5
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      CONTRIBUTING.md

+ 10
- 2
CONTRIBUTING.md View File

@@ -238,11 +238,19 @@ If you are making a change that will alter the URL of a mod (e.g. a name change

Non-mod pages (such as [the main index of the website](https://modding-openmw.com/)) are defined in various ways.

TODO
First, there's the view function. If the page is to be totally static HTML, then you can use the [`static_view()`](https://git.modding-openmw.com/Modding-OpenMW.com/momw/src/commit/cb70febfc71881483fb31d3ba60ea4004139968b/momw/momw/views/utility.py#L20-L21) view function.

If the page needs to be dynamic in some way, then you would define a new view function in the [`dynamicpages.py`](https://git.modding-openmw.com/Modding-OpenMW.com/momw/src/branch/beta/momw/momw/views/dynamicpages.py) file.

In either case, you will also need a `.html` file in the [`templates`](https://git.modding-openmw.com/Modding-OpenMW.com/momw/src/branch/beta/momw/momw/templates) directory.

Then you have the URL route, defined in [`urls.py`](https://git.modding-openmw.com/Modding-OpenMW.com/momw/src/branch/beta/momw/momw/urls.py).

This is how URLs are matched to view functions, see the file for examples of this in action in various ways.

### Edit a non-mod page

TODO
Editing a non-mod page isn't much different from adding one. The same patterns apply, except you'd be working with existing content.

If you are making a change that will alter the URL of a page, please see [below](#preserving-old-links) for a note on preserving old links.



Loading…
Cancel
Save