kopia lustrzana https://github.com/wagtail/wagtail
Fix typo: Replace 'another field' with 'an author field' in writing_templates documentation (#12799)
rodzic
01d7858ba4
commit
f25a95deee
docs/topics
|
@ -869,6 +869,7 @@
|
|||
* Mike Gifford
|
||||
* Stéphane Blondon
|
||||
* Jatin Bhardwaj
|
||||
* Mohamed Rabiaa
|
||||
|
||||
## Translators
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ For more information, see the Django documentation for the [application director
|
|||
|
||||
### Page content
|
||||
|
||||
The data/content entered into each page is accessed/output through Django's `{{ double-brace }}` notation. Each field from the model must be accessed by prefixing `page.`. For example the page title `{{ page.title }}` or another field `{{ page.author }}`.
|
||||
The data/content entered into each page is accessed/output through Django's `{{ double-brace }}` notation. Each field from the model must be accessed by prefixing `page.`. For example the page title `{{ page.title }}` or an author field `{{ page.author }}`.
|
||||
|
||||
A custom variable name can be configured on the page model {attr}`wagtail.models.Page.context_object_name`. If a custom name is defined, `page` is still available for use in shared templates.
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue