21288 Posts in 5733 Topics by 2602 members
|Go to End|
15 October 2012 at 1:54pm
I have already posted this to forms but no replies so maybe more luck here
I have created an Orbit slider class to go with my Zurb Foundation template (which I am planning to submit for public use). This class has some couple of small issues as detailed below:
1. If I use the UploadField to choose an image "from files" the resulting popup is correct and in the correct directory but does not show the image thumbnails that are available in the Files repository. What is the config to enable this - or is there one at all? It is very hard to choose images if you can't see them.
2. How do I disable the upload buttons when there is already one image selected. This is supposed to be automatic in a has_one and I have set allowedMaxFileNumber' => 1 to no avail.
3. When I create a new Orbit image and choose an image "from files" it fails, as there is no actual object to attach it to. I see there is a setRecord() method available and if I add
In the getCMSFields() function then at least I get a warning to save the new object first. For the unwary though, the save button by default says "Create" whereas the warning text is by default "Files can be attached once you have saved the record for the first time." which will lead some users to quiz the operation. How might I save this object immediately it's instantiated.
Curiously, if I upload a fresh image to an unsaved new Orbit image this seem to happen automatically and it works fine.
Any ideas appreciated.
|Go to Top|