murph-doc/docs/tree/navigation.md
2021-05-30 23:00:08 +02:00

15 lines
809 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Navigation
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.
![](/_static/img/tree/01.png)