How do I connect image block to external DB

Permalink 1 user found helpful
Hey guys, I am trying to take the image block & change it to grab files from an external database. I am a little new at MVC and for the life of me cant find where I am supposed to change the PHP/MYSQL variable from its current location to the external DB. Any thoughts?

sambrody24
 
Sadu replied on at Permalink Reply
Sadu
Hi there,

I'm not sure you are going to be able to do what you want to do with the standard image block. I would look at writing a custom block for this. The standard image block stores a fID (file ID) in the database and that fID is tied into the local filemanager. Even if you managed to get the block connecting to an external DB you would run into problems selecting images from the remote file manager.

I do something similar on http://www.harveykane.com - the images on this page come from an external database, actually the database from my old CMS which Ihaven't got around to importing properly. Each image is a simple custom block that I wrote.