Since the MySite module has an API for grabbing different content types, it can be used as a "feeder" module for Component.

The key function here is http://therickards.com/api/function/mysite_display/MySite:

  mysite_display($type, $type_id, $uid = 0, $format = 'default');

Where $type is a plugin type defined by MySite. So, for example, to return the top X nodes in term 3, you'd pass:

  mysite_display('term', 3, $uid = 0, $format = 'default');

The function returns a themed HTML element, ready for printing. Perfect for an AJAX callback.

Comments

agentrickard’s picture

Take a look, btw, at the Panels / MySite integration discussion. I think merlin and I are agreeing that we want a common content generation layer.

Perhaps Component can do that.

http://groups.drupal.org/node/5776

irishgringo’s picture

if I wanted to create an email blast from a view, would this module be a good candidiate. I want to theme the view, and save it to an HTML file... then pass it to campaignMonitor, the email service. so I guess the first question, is how to create a file from this module?

Crell’s picture

This issue is about MySite integration. Do not post new support questions into existing issues. Create a new issue and post it there.

Crell’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)