Timeline for Get the variables of a loop from an include file
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 3, 2018 at 15:05 | comment | added | Robin Schambach | This would be a new question, but there are plenty examples how to create an array in twig. twig.symfony.com/doc/2.x/filters/merge.html | |
May 3, 2018 at 15:03 | comment | added | Mvrcel Boer | And how i do this? :) | |
May 3, 2018 at 14:33 | comment | added | Robin Schambach |
You would have to create a new array of headlines by looping through all blocks in your _overview-topicTeaser.twig
|
|
May 3, 2018 at 14:30 | comment | added | Mvrcel Boer | Sure i could do it with "item.entryTopicHeadline". But i am using the "_module-squareteaser.twig" for multiple includes at different places on the website. So thats why i wanna go with just "squareteaserHeadline", Thought its somehow possible. | |
May 3, 2018 at 14:13 | history | edited | Robin Schambach | CC BY-SA 4.0 |
deleted 2 characters in body
|
May 3, 2018 at 13:47 | history | answered | Robin Schambach | CC BY-SA 4.0 |