Hello,
I've got a problem with some images in SS. I have a class 'oProfileMdl' which first extended from DataObject, but now from Member because I needed the fields from this class in the CMS. Now the images don't show up on the website. At first it worked fine. The code I'm using in the template is:
<% control Foto %>
<% control CroppedImage(103,105) %>
<img src="$URL" alt="Bekijk het profiel van '$FirstName $Surname'" title="Bekijk het profiel van '$FirstName $Surname'" width="103px" height"105px" />
<% end_control %>
<% end_control %>
I just pass it a DataObject like I normally do, also when I put the $FotoID in the link it is visible.
Also I've created a form which edits the profile, when when i put the following code in it SS gives a error: Method 'Foto' not found in class 'Member'
new SimpleImageField('Foto','Uw pasfoto:'),
In the oProfileMdl there is a static $has_one
static $has_one = array(
'Foto' => 'Image'
);
Does anybody know a solution?
Thanks!