Problem is, the link you provided contains information about DataObjectManager instead of ModelAdmin (which this thread is about).
I keep ending up with "Unable to traverse to related object field"
So any other thoughts?
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Go to End
- Previous 10 entries
- 1
- Page 22(current)
Hi
This works fine for me.
static $has_one = array(
'Advertiser' => 'Advertiser',
'AdvertImage' => 'FittedImage',
);
static $searchable_fields = array(
'TargetURL' => 'ExactMatchFilter',
'Title' => 'ExactMatchFilter',
);
static $summary_fields = array(
'TargetURL',
'AdvertImageThumbnail',
'Title',
'ToolTipTitle',
);
public function AdvertImageThumbnail() {
return $this->AdvertImage()->CMSThumbnail();
}
ta
Found the solution to my problem on IRC:
http://silverstripe.org/data-model-questions/show/263751#post263751
Go to Top
- Previous 10 entries
- 1
- Page 22(current)