Hi all,
Okay, so I'm currently working with Model Admin for the first time and finding resources for it a little thin on the ground. I have some questions I'm hoping can be answered by the community:
1. Is there a way to dynamically change the allowed actions for the ModelAdmin on a per-class basis? I'm assuming it is done with $allowed_actions, however I've not been able to actually accomplish this after trying what seems like every conceivable option.
2. When Importing, is it possible to import data in relation to a FileIFrameField? Ie, upload the files first, then import the DO with a relationship to the file?
3. When using the "Select result columns..." function, if you select none and try to search, you get an error as follows:
Warning: "array_fill() [function.array-fill]: Number of elements must be positive" at line 624 of F:\sitename\cms\code\ModelAdmin.php
Given that there is a physical option to select none of the columns to show, there should be a nicer error message (or even a popup stopping the search before it happens).
4. Is there a way to sort the search results in the TableListField or to have it appear on opening the page?
That should do for now... ;) Anyone got any advice?
- DesignCity