diff --git a/content/docs/templates/imageops/contents.lr b/content/docs/templates/imageops/contents.lr index 3a29574a..005f61e7 100644 --- a/content/docs/templates/imageops/contents.lr +++ b/content/docs/templates/imageops/contents.lr @@ -23,6 +23,25 @@ the query. For instance this iterates over all attached images of a page:
{% endfor %} ``` +
+To access images from a different content folder, you would use: + +```html+jinja +{% for image in site.query('/myfolder').attachments.images %} +
+{% endfor %} +``` +
+To retrieve only a specific image or attachment with a certain name you would use + +```html+jinja +{% set my_image site.query('/myfolder').attachments.get('imagenameexample.jpg') %} +
+``` + + + + ## Accessing Image Data