Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/fieldtypes/file.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,3 +284,17 @@ Resize the image and then crop it.
- `{url}` - processed image URL
- `{width}` - processed image width
- `{height}` - processed image height

### Using different modifiers within same tag pair

It is possible to use different modifiers within same tag pair.
The modifiers and parameters would need to be applied to `{url}` variables available inside field tag pair.
This can be useful, for instance, if you want to build `<picture>` tag with different sizes of same image

{news_image}
<picture>
<source media="(min-width:650px)" srcset="{url:resize width="650"}">
<source media="(min-width:465px)" srcset="{url:resize width="465"}">
<img src="{url}" alt="{title}" style="width:auto;">
</picture>
{/news_image}