diatem-net/twig_imageformat

Return formated image by style.

Maintainers

Package info

github.com/diatem-net/twig-imageformat

Type:drupal-module

pkg:composer/diatem-net/twig_imageformat

Statistics

Installs: 94

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

2.0.1 2023-10-13 15:13 UTC

This package is not auto-updated.

Last update: 2026-03-04 00:15:25 UTC


README

The Image Format allows you to retrieve an image according to the style defined in the backoffice.

REQUIREMENTS

Drupal 9.x.

INSTALLATION

Install this module as usual. Please see https://www.drupal.org/docs/extending-drupal/installing-modules

USAGE

paramètres: - node id OR term id - image format - key of image if several images

{% set image = imageformat(node.id, 'field_image', 'style' , key) %} {% set image = termImageformat(term.id, 'field_image', 'style' , key) %}