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

CommentFileSizeAuthor
#5 3006458-updating-readme-5.patch12.58 KBnitin_lama

Issue fork dfp-3006458

Command icon 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

VladimirAus created an issue. See original summary.

mscipioni’s picture

I 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') }}

vladimiraus’s picture

Status: Active » Needs work

Thanks for the tip @mscipioni
Should put it into README

nitin_lama’s picture

Assigned: Unassigned » nitin_lama
nitin_lama’s picture

Assigned: nitin_lama » Unassigned
Status: Needs work » Needs review
StatusFileSize
new12.58 KB

Updating README file as per #3, also fixing characters issues as per Drupal standards.

anybody’s picture

Status: Needs review » Needs work

I think it would make a lot of sense to turn this into a MR for easier review and merge. @nitin_lama?

nitin_lama’s picture

Assigned: Unassigned » nitin_lama

nitin_lama’s picture

MR created.

nitin_lama’s picture

Assigned: nitin_lama » Unassigned
Status: Needs work » Needs review
anybody’s picture

Version: 8.x-1.x-dev » 3.0.x-dev
Status: Needs review » Reviewed & tested by the community
Issue tags: -Twig, -DFP, -Google DFP

Thanks for the addition and cleanup!

vladimiraus’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.