22972 Posts in 11596 Topics by 2824 members
|Go to End|
29 March 2010 at 1:35am
I followed tutorial 2 and uploaded a photo of Einstein but I can't see it on the public site. The DIV is just empty <div class="staffphoto"></div>
In CMS view I can see it (in the article and in the asset folder).
The only change I made is to rename photo to Foto.
static $has_one = array(
'Foto' => 'Image'
$fields->addFieldToTab("Root.Content.Bilder", new ImageField('Foto'));
I flushed the pages more than once, but no image. Neither in the staff holder page nor in the staff page.
29 March 2010 at 2:01am
I got it. After a look in the DB I saw that the relation to the photo wasn't in the live version. I saved and published the page and it gets displayed.
I thought uploading the picture is sufficient and didn't know to publish the article again.
|Go to Top|