Custom Blocks With Images
Permalink
I am embarking today upon creating a custom block that is based upon the 'staff block' posted by Remo.
My thinking is to create a div that has its own table and in it two editable areas that essentially will be tied to that table row.
One div will be an image and one div will be a short description. So when that div is displayed the associated inner divs will be as well.
My thinking is to create a div that has its own table and in it two editable areas that essentially will be tied to that table row.
One div will be an image and one div will be a short description. So when that div is displayed the associated inner divs will be as well.
Now here is the challenge.... part of the block is the ability to add an image. What I want to do is pull in the existing core image block.
If it works, I will be able to access the Asset Library and add an image to my block from the library.
Has anyone tried anything similar?
*** UPDATE ***
I have successfully accessed the Core Asset Library. I don't understand it well enough to save the selected image from the library to my DB from.
It looks like the image block wants to store the ID of the block that I included the image in.
I would rather fetch the ID (fID) of the image in the Asset Library in my custom block table.. but then again what if the image is removed from the library hmm.
Is anyone tracking this?
WJ