Is this possible?
You know sugree, Over the last few months I've learned some very interesting stuff from your reading the postings on your site, not just about Drupal. I thank you for that. Yesterday, I read this post http://drupal.org/node/73389 over at Drupal and thought it's an interesting idea. Since nobody at Drupal seems to know the answer to this one, I'd thought I'd ask here since you always have the answers! Is it actually possible to take blocks from one Drupal site and post them on another non-drupal site. The MeCommerce.module at http://drupal.org/project/mecommerce seems to do this with ads, however after some investigating I see that goodstorm is using Drupal only as front for it's t-shirt store and the mecommerce application is actually written using turbogears. I think it would be cool, for example, to be able to share blocks of content with other sites from friends. What do you think? Is it possible on Drupal? How would someone go about doing this? I see a python section here, how would turbogears make such a thing like mecommerce? It's an interesting topic I think. Anyways, thanks again. cheers, larry
- larry's blog
- 1573 reads
partial render
thanks for clearing that up..
affiliation module
very nice approach...
quick solution
function custom_render_block($module,$delta) { $block = module_invoke($module,'block','view',$delta); print theme('block'); exit(); }
Then bind above function to a menu, e.g. custom/renderblock. So you may get a block content by retrieving the first block of module "block" at custom/renderblock/block/1 using drupal_http_request().Is it that simple?
it is that simple
Ok..I'm almost there. My
drupal_http_request
function custom_block_get_remote_block($url) { $ret = drupal_http_request($url); return $ret->data; }
And then call this function in a block.Post new comment