I am beginner with drupal 8 theming.

My Question is: I have created a custom content type name project_images for making carousal SlideShow. It consists multiple images as a field. Now I want to retrieve all images in a custom region with twig templating how to access all images from project_images content. Thanks


What is the type of the field that stores the multiple images ?

Is it an Image field or an Entity Reference field (Media Entity) ?

  1. check this if it's an image field
  2. check this if it's an Entity Reference field

The two methods will let you extract the value of the image field using a twig syntax.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.