Hi all!
I'm developing a slideshow widget to provide a swf file with an xml created thru the cms (acronyms make our lives so much easier) but I wanted to be able to upload images thru the cms configuration panel for the widget and can't seem to find a solution.
When I have the following:
(...)
function getCMSFields(){
return new FieldSet(
new FileField("Image1", "Slideshow Image 1"),
(...)
...I can select a file but it won't upload when I save/publish the page.
If I use:
(...)
function getCMSFields(){
return new FieldSet(
new ImageField("Image1", "Slideshow Image 1"),
(...)
... it gives me an error right when I try to open any page for editing:
"Fatal error: Call to a member function getRecord() on a non-object in /home/userDir/public_html/sapphire/forms/ImageField.php on line 14"
Any chance I can select an image for my widget to display in the front end?
Thank you so much!