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

GCT’s picture

unfortunately they are there after sending too... a bit of a deal breaker...

bleedev’s picture

Status: Active » Fixed

This has been resolved in 77b677a.

Status: Fixed » Closed (fixed)

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

bryanhidalgo’s picture

The 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

basvredeling’s picture

This 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.

bryanhidalgo’s picture

Thanks, I opened a new issue here: https://www.drupal.org/node/2356065