Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update functions.md #1276

Open
wants to merge 1 commit into
base: 4.0
Choose a base branch
from
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
5 changes: 2 additions & 3 deletions docs/twig-components/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,7 @@ For more information, see [Linking in templates][linkintpl-current].
To insert an image in the HTML, which functions as an image popup use either
the `popup` function or filter.

You can optionally provide the width, height and cropping parameters, like you
can do with the `thumbnail` filter.
You can optionally provide the width, height and a class parameter, which will apply a custom class value to the image tag for styling. The default values of the parameters are 320 pixels wide, 240 pixels height, and class="bolt_img".

```twig
{{ record.photo|popup(100, 100, "r") }}
Expand Down Expand Up @@ -440,4 +439,4 @@ Please refer to the [widgets][widgets-page] documentation.
[previous_filter]: ./filters#previous
[next_filter]: ./filters#next
[markdown_filter]: ./filters#markdown
[media_filter]: ./filters#media
[media_filter]: ./filters#media