5099 Posts in 1519 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 289 Views |
-
[solved] SS3 Model Admin for Data Object Summary

17 August 2012 at 5:43pm Last edited: 17 August 2012 5:44pm
I'm having issues getting the dot-notation working for a has_one of a Page.
class Testimonial extends DataObject {
public static $db = array(
'Title' => 'Varchar(255)',
'Quote' => 'HTMLText',
'Tagline' => 'Varchar(255)',
'SortOrder' => 'Varchar(255)'
);
public static $has_one = array(
'BookPage' => 'BookPage',
'Image' => 'Image'
);
public static $summary_fields = array(
'BookPage.Name',
'Title',
'Quote',
'Tagline'
);And the BookPage is a class that extends 'Page'
The BookPage.Name doesn't work in my SS3 setup. To be clear, I'm trying to view the BookPage Column so I know which page ("Book") has the testimonial.
-
Re: [solved] SS3 Model Admin for Data Object Summary

17 August 2012 at 9:24pm Last edited: 17 August 2012 9:25pm
I jumped off the github version and grabbed Silverstripe's stable download to get things working for my summary fields. It looks like I'll be staying with stable releases from now on.
| 289 Views | ||
|
Page:
1
|
Go to Top |

