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
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
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/...
http://www.concrete5.org/marketplace/addons/iframe/...
http://www.concrete5.org/marketplace/addons/dynamic-iframe/...
$file = Loader::helper('file');
$contents = $file->getContents($url);