Timeline for Different Templates for Same Field
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 6, 2018 at 16:25 | answer | added | Sanjay | timeline score: -1 | |
Nov 6, 2018 at 0:10 | history | edited | Sam | CC BY-SA 4.0 |
expanded example
|
Nov 5, 2018 at 21:30 | comment | added | prkos | Maybe you can achieve what you're after with some clever code in "Rewrite output" options for that field, you can use twig there. | |
Nov 5, 2018 at 16:31 | comment | added | 4uk4 | I think your best chance is to clone the field in a node view hook and set a different view mode in the field display settings. This should get you different theme name suggestions and separate caching of both rendered versions of the paragraph. See drupal.stackexchange.com/questions/218144/… | |
Nov 5, 2018 at 16:05 | comment | added | Kevin | Why not encapsulate this in the Paragraph bundle itself? They certainly have robust twig suggestions. | |
Nov 5, 2018 at 14:55 | review | Close votes | |||
Nov 23, 2018 at 3:05 | |||||
Nov 5, 2018 at 14:42 | comment | added | leymannx |
Hm, to me it's unclear what you are asking. What conditions should be met to decide wether to take one or the other template? I wonder if you ain't better off with some include .
|
|
Nov 5, 2018 at 14:39 | history | edited | leymannx | CC BY-SA 4.0 |
edited title
|
Nov 5, 2018 at 14:24 | history | asked | Sam | CC BY-SA 4.0 |