Timeline for Shortcode in template
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 9, 2018 at 12:47 | comment | added | Pratip Ghosh |
Could'nt get the block_content variable also. I instead created a separate block to render the field and in turn rendered that block inside this twig template.
|
|
May 8, 2018 at 12:54 | comment | added | Kevin |
Then it’s {{ block_content.field_name }}
|
|
May 8, 2018 at 12:30 | comment | added | Pratip Ghosh | To add, what I am trying to do is render the body field that contains shortcode. The shortcodes are rendered as is in the page. | |
May 8, 2018 at 6:49 | comment | added | Pratip Ghosh |
But I am not getting a {{ content.field_name }} in the twig file. Remember, its not a node.html.twig but a block--entity-view--node--article.html.twig
|
|
May 7, 2018 at 13:36 | history | answered | Kevin | CC BY-SA 4.0 |