Timeline for How do I theme a link with twig for a specific content type?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 30, 2016 at 6:23 | comment | added | 4uk4 | That's probably the easiest solution you can do in theming, I would post this as an alternative answer, for future reference. | |
May 30, 2016 at 6:16 | comment | added | Nic | Actually I managed to get the content type into the default variables and did a conditional in the twig file | |
May 30, 2016 at 6:14 | comment | added | 4uk4 | In this case, if you need a solution that works with entity references, views and different kind of layout solutions you would need a custom field formatter, which you put in manage display of the content type. | |
May 29, 2016 at 18:51 | comment | added | Nic | Thanks @4k4 but in this instance I wanted to create a different tag hierarchy for just one content type's link template | |
May 29, 2016 at 10:08 | history | edited | Stefanos Petrakis | CC BY-SA 3.0 |
to => too
|
May 29, 2016 at 8:03 | history | answered | 4uk4 | CC BY-SA 3.0 |