add doc for codes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Vieille 2022-03-16 12:43:50 +01:00
parent 27d9563c6b
commit a91b709bfc

View file

@ -63,6 +63,13 @@ When the navigation has several domains, you can specify the domain:
{% set url = safe_node_url(node, {_domain: _domain}) %}
```
## Code functions
* Generates a URL using codes: `{{ code_url(menuCode, nodeCode, options, relative) }}`
* Generates a path using codes: `{{ code_path(menuCode, nodeCode, options, relative) }}`
* Generates a URL using codes and catches all exceptions: `{{ safe_code_url(menuCode, nodeCode, options, relative) }}`
* Generates a path using codes and catches all exceptions: `{{ safe_code_path(menuCode, nodeCode, options, relative) }}`
### Filters
When a content could contains tags (eg: '{{url://my_route}}`), use `murph_url`. This the example below: