Now, my next question is - do I need to create a Resource class for each of the page types that I want to display this control on, or is there an easy way for me to set the filter on the main page ID? Can I do it through the SiteTree table at all?
I think you should be able to just add the page types to the has one relation ship, so you will have a number of has_one's but only one will be used at a time. Not sure if there is a better way to do it though
1. How do you define the default upload folder for the FileDataObjectManager module?
I don't want my users to be uploading to the root of the Upload folder, as it'll make attaching files and images very messy!
2. And, is there a way to store or display the file properties such as filesize and filetype?
I can see that the control for editing the asset shows both, but can't see how I call this in the UI.
1) This is actually in production right now. I've had a number of requests for it. Check out the svn later today (it's Friday morning here). The implementation is $manager->allowUploadFolderSelection();
2) File size and type are stored automatically in the File table. Use $Size and $Type (I believe). In the example code for "Resource" that would look like this:
(might be FileType, or something like that. I forget the exact name of the property)