How to add Image Selector to block
Permalink
Hello everyone,
I'm trying to create a Block where the user can add some free text (with tiny mce) and select an image (or upload one).
For the life of me, I couldn't find any documentation on how to add the image selector. What I want to be able to do, is allow the user to select (or upload if possible) a file, and resize it to the correct dimensions.
Can anyone please point me in the right direction?
Much obliged,
BailHope
I'm trying to create a Block where the user can add some free text (with tiny mce) and select an image (or upload one).
For the life of me, I couldn't find any documentation on how to add the image selector. What I want to be able to do, is allow the user to select (or upload if possible) a file, and resize it to the correct dimensions.
Can anyone please point me in the right direction?
Much obliged,
BailHope
http://concrete5.org/marketplace/addons/designer-content...
If you actually want to learn how to create blocks yourself (which I highly recommend if you're a developer), you can still use Designer Content just to see a lot of example code for how different kinds of blocks are built (it also encompasses a lot of "best practices" I've learned over time in terms of code and file structure).
Let me know if you have any questions about that or about building blocks in general.
-Jordan