7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Adding Images to the testimonials page?
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | ||
| Author | Topic: | 2664 Views |
-
Re: Adding Images to the testimonials page?

12 February 2010 at 9:57am
When I run a dev/build?flush=1 I get this error message....
[Warning] DataObject::__construct passed The value 'HeaderImage'. It's supposed to be passed an array, taken straight from the database. Perhaps you should use DataObject::get_one instead?
The 'TagLine' and 'Statement' fields work fine.
Thanks,
George -
Re: Adding Images to the testimonials page?

12 February 2010 at 10:22am
The Image relationship belongs in your $has_one, not your $db.
| 2664 Views | ||
| Go to Top |

