Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I created a campaign using the Insert site content (MailChimp token) function. The node edit and delete links can't be seen in the preview (Drupal interface) mode (which is the needed behaviour) but they added in the View Archive (rendered HTML) page. (I did not sent the campaign, so I do not know if the links stay there, but I think they would be there.)
Comments
Comment #1
GCT CreditAttribution: GCT commentedunfortunately they are there after sending too... a bit of a deal breaker...
Comment #2
bleedev CreditAttribution: bleedev commentedThis has been resolved in 77b677a.
Comment #4
bryanhidalgo CreditAttribution: bryanhidalgo commentedThe patch fixes the bug partially, there's still a bug when there's an entity reference field on the content added then it happens the same issue, contextual links are added to the MailChimp template
Here's the steps to reproduce it:
1- Add a content type with an entity reference field
2- Create a display mode 'example_display' and display the entity reference field as Rendered Entity.
3- Create a node of that content type
4- Create a campaign and on a region hit on: insert site content, Entity Type = content, choose the created node, choose the created view mode ('example_display')
Then the output on MailChimp template renders the Contextual Links
Comment #5
basvredelingThis should be reopened or a new issue should be created.
@needorf, which of these options has your preference? I'd say open a new issue.
It sounds like we need to rethink the contextual links rendering all together.
Maybe rendering the whole newsletter under less permissions will help hide all contextual links.
Comment #6
bryanhidalgo CreditAttribution: bryanhidalgo commentedThanks, I opened a new issue here: https://www.drupal.org/node/2356065