kopia lustrzana https://github.com/wagtail/wagtail
Update focal_points.md (#10878)
corrected the load from {% load wagtailimages %} to {% load wagtailimages_tags %}pull/10885/head
rodzic
386e7c896e
commit
bf709279d5
|
@ -29,6 +29,7 @@ Changelog
|
|||
* Docs: Document `WAGTAILADMIN_BASE_URL` on "Integrating Wagtail into a Django project" page (Shreshth Srivastava)
|
||||
* Docs: Replace incorrect screenshot for authors listing on tutorial (Shreshth Srivastava)
|
||||
* Docs: Add documentation for building non-model-based choosers using the _queryish_ library (Matt Westcott)
|
||||
* Docs: Fix incorrect tag library import on focal points example (Hatim Makki Hoho)
|
||||
* Maintenance: Fix snippet search test to work on non-fallback database backends (Matt Westcott)
|
||||
* Maintenance: Update Eslint, Prettier, Jest, a11y-dialog, axe-core and js-cookie npm packages (LB (Ben) Johnston)
|
||||
* Maintenance: Add npm scripts for TypeScript checks and formatting SCSS files (LB (Ben) Johnston)
|
||||
|
|
|
@ -727,6 +727,7 @@
|
|||
* Sandeep Choudhary
|
||||
* Antoni Martyniuk
|
||||
* Gareth Palmer
|
||||
* Hatim Makki Hoho
|
||||
|
||||
## Translators
|
||||
|
||||
|
|
|
@ -24,9 +24,9 @@ attribute on the rendition to position the rendition based on the focal point in
|
|||
You can access the focal point in the template by accessing the `.focal_point` attribute of a rendition:
|
||||
|
||||
```html+django
|
||||
{% load wagtailimages %}
|
||||
{% load wagtailimages_tags %}
|
||||
|
||||
{% image myimage width-800 as myrendition %}
|
||||
{% image page.image width-800 as myrendition %}
|
||||
|
||||
<img
|
||||
src="{{ myrendition.url }}"
|
||||
|
|
|
@ -45,6 +45,7 @@ depth: 1
|
|||
* Document `WAGTAILADMIN_BASE_URL` on "Integrating Wagtail into a Django project" page (Shreshth Srivastava)
|
||||
* Replace incorrect screenshot for authors listing on tutorial (Shreshth Srivastava)
|
||||
* Add documentation for building non-model-based choosers using the _queryish_ library (Matt Westcott)
|
||||
* Fix incorrect tag library import on focal points example (Hatim Makki Hoho)
|
||||
|
||||
### Maintenance
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue