murph-doc/docs/tree/navigation.md

15 lines
809 B
Markdown
Raw Permalink Normal View History

2021-05-30 23:00:08 +02:00
# Navigation
2021-05-30 20:36:00 +02:00
To create a navigation, go to `Navigations` and click on `New`. Then fill the form and save.
* The `label` is the label displayed whenever necessary (eg: `Example`)
* The `locale` is the language used in the content (eg: `en`)
* The `code` is a unique technical identifier useful in templating, routing and settings (eg: `example_en`)
* The `domain` defines the main domain used to access the navigation (eg: `example.com`)
* `Additional domains` are additional domains used to access the navigation (eg: `www.example.com`). You can specify regular expression to match all that you want
If several navigations share the same domain, then the locale will by used to prefix routes.
But if a navigation uses a single domain then the local will not prefix routes.
2021-05-30 23:00:08 +02:00
![](/_static/img/tree/01.png)