I successfully tried this sample string as content:
`[mailchimp_campaign|entity_type=node|entity_id=1|view_mode=teaser]`

I know view_mode can be full or teaser.

Now I would like to include a view in here. Is that possible ? What is then needed for entity_type and entity_id ?

And if views are not possible, what other options are there for entity_type ?

Comments

l_o_l’s picture

One way of showing views (or anything else) is by attaching / including it to a node.
For a view the module Entity View Attachment could be used: http://drupal.org/project/eva

Is that the way to go ?

paultrotter50’s picture

I'd also really appreciate some examples of how to use the campaign macros.

The macro in the example below seems to have the entity_id is hard-coded into the macro. Is there a way of generating the nodes to be called based on CCK fields (for example limiting nodes to those published in the last two weeks and that have a checked field of 'including in mailchimp newsletter')? Or are there some other ways to use Mailchimp Campaign macros?

[mailchimp_campaign|entity_type=node|entity_id=1|view_mode=teaser]

It would be great to hear about how other users have been adapting the above macro to pull the nodes they want.

Thanks in advance,

Paul

Aptalops’s picture

Issue summary: View changes

Subscribing. So far, I've just been using macro template above and experimenting with node number and teaser, default, etc. I think I might create another Content Type custom display (if it's possible to do this via "Custom display settings" on the content type, if not adapt the 'full content' custom display ), call it 'Mailchimp article' and add it to several content types to format each in the same way (i.e. similar image size, text summary length, etc.) once they're pulled into MailChimp.
A~

amytswan’s picture

Status: Active » Closed (won't fix)

“And now our watch [for support of the 7.x-2.x version of the MailChimp module] has ended…” With the approaching deprecation of MailChimp’s API version 2.0, I’m sad to say we too must turn the page. This branch will become unsupported in early October and officially deprecated by the end of this year (2016).

Fret not! The 7.x-4.x and 8.x versions come highly recommended. Both are using Mailchimp’s new API 3.0 and are being actively maintained. If you find this issue still exists on either the 7.x-4.x or 8.x branches, let us know by opening a new ticket. “What is dead may never die, but rises again, harder and stronger!”