I'm new to silverstripe and right now working on my first project which should be done in a few days.
I just encountered some problems with the Hasmanycomplexfield...
1. I have multiple pictures assigned to a project. If I upload a picture it's displayed in the hasmany...table, but I cant change it in size!
which appeared logical to me, doesnt work (just shows .SetWidth(100) on the table cell!
$imagesfield->setFieldFormatting(array('Image' => '$Image.SetWidth(100)'));
2. Is there a fast way to change the bahaviour of the image uploader in the popup so that you dont have to save before adding the file (i wouldnt need any preveiw there)?
3. In the template I can't get Image Resizing working.. I'm trying
but I'm just getting the error message [Warning] Missing argument 1 for Image::SetSize(). Seems to me that there is a problem handling more than one argument in the template? I was not able to find any descent documentation about it, but is it also the right syntax to just seperate the twovalues via comma?
I'd appreciate any help, since I should finish this site (which is my first SS project) soon... Learned really a lot already and I'm quite impressed by SS!