MySite integration

agentrickard - August 20, 2007 - 17:26
Project:Component
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

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:

<?php
  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:

<?php
  mysite_display
('term', 3, $uid = 0, $format = 'default');
?>

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

#1

agentrickard - August 25, 2007 - 14:07

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

#2

vinceyoumans - June 21, 2009 - 04:37

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?

#3

Crell - June 22, 2009 - 21:05

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

 
 

Drupal is a registered trademark of Dries Buytaert.