Skip to main content

Timeline for Override image-formatter.html.twig

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Dec 20, 2014 at 16:11 answer added star-szr timeline score: 15
Nov 24, 2014 at 7:27 comment added TiMESPLiNTER Thx for your comment. Yes that sounds helpful. I like to override the template for a specific node type and a specific field in those nodes. So I can use something like field-formatter--node--mynode--my-field.html.twig?
S Nov 22, 2014 at 17:10 history suggested star-szr CC BY-SA 3.0
.html.twig, not .twig.html
Nov 22, 2014 at 15:31 review Suggested edits
S Nov 22, 2014 at 17:10
Nov 22, 2014 at 15:30 comment added star-szr That debug output doesn't mean you can't override the template, it just means there are no additional/more specific template suggestions. You may be able to add your own suggestion to meet this use case. I can try to write up an answer showing how to do that if that sounds helpful but the granularity may be somewhat limited. For example within this context we probably don't know what the image field is called but we do know the image style. If you want to add rel to all image formatter output it's a simple template override.
Nov 21, 2014 at 16:01 history asked TiMESPLiNTER CC BY-SA 3.0