If you put DFP block inside one of the twig_tweak functions e.g. drupal_region or drupal_block it won't render
https://www.drupal.org/project/twig_tweak
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3006458-updating-readme-5.patch | 12.58 KB | nitin_lama |
Issue fork dfp-3006458
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mscipioni commentedI was having problems with this using the machine name. I had to get the id from hoving over "Place Block" in the block interface and looking at the ID in the URL after block/add. So now it works if I do:
{{ drupal_block('dfp_ad:c684852a-49af-4a82-babe-150e53f6cdc3') }}Comment #3
vladimirausThanks for the tip @mscipioni
Should put it into README
Comment #4
nitin_lamaComment #5
nitin_lamaUpdating README file as per #3, also fixing characters issues as per Drupal standards.
Comment #6
anybodyI think it would make a lot of sense to turn this into a MR for easier review and merge. @nitin_lama?
Comment #7
nitin_lamaComment #9
nitin_lamaMR created.
Comment #10
nitin_lamaComment #11
anybodyThanks for the addition and cleanup!
Comment #12
vladimiraus