Jump to:

5537 Posts in 1737 Topics by 1223 members

Customising the CMS

SilverStripe Forums » Customising the CMS » [solved] SS3 Model Admin for Data Object Summary

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 524 Views
  • Graphicator
    Avatar
    Community Member
    62 Posts

    [solved] SS3 Model Admin for Data Object Summary Link to this post

    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.

  • Graphicator
    Avatar
    Community Member
    62 Posts

    Re: [solved] SS3 Model Admin for Data Object Summary Link to this post

    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.

    524 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.