Can I populate the content of a block from an external source (URL?)

Permalink 2 users found helpful
Sorry -- I'm completely new to C5.

I'd like to be able to populate the content of a block with data retrieved from an external source.

For example -- I've writtenhttp://www.mysite.com/data/getupdates.php... and it will return the formatted data (well, HTML actually) that I want displayed.

Is it possible to have a block pull data from a URL or other source?

Thank you!

Ian

 
Mnkras replied on at Permalink Best Answer Reply
Mnkras
Yes, you can make a block that easily does this,
$file = Loader::helper('file');
$contents = $file->getContents($url);
JohntheFish replied on at Permalink Reply
JohntheFish
There are a couple of iframe blocks available as freebies in the marketplace that may help:
http://www.concrete5.org/marketplace/addons/iframe/...
http://www.concrete5.org/marketplace/addons/dynamic-iframe/...