Is it possible to control the output so that field.html.twig is not written if the field has no content?

At the moment field.html.twig is always filled with imagefield-slideshow.html.twig, no matter if it contains images or not.

By the way: A nice simple module that creates good effects with little effort!

CommentFileSizeAuthor
#2 hide-field-if-empty-3068567-2.patch1.78 KBlmancilla

Comments

beder created an issue. See original summary.

lmancilla’s picture

Status: Active » Needs review
StatusFileSize
new1.78 KB

Hello,
I've added a validation to check if the field has images,
please review the attached patch.

beder’s picture

Status: Needs review » Fixed

great, thx!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.