Jump to:

23001 Posts in 11702 Topics by 2827 members

General Questions

SilverStripe Forums » General Questions » $db fields do not appear in the DashBoard

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 470 Views
  • Ajaxian
    Avatar
    Community Member
    8 Posts

    $db fields do not appear in the DashBoard Link to this post

    Hi,
    I'm newcomer to SS, and I have seen a lot of doc, and have made working the tutorial about Students and Project.

    I'm trying to achieve a very similar stuff than the tutorial one.
    I have a CarManufacturer class
    a CarManufacturerHolders which aims to contain all CarManufacturers
    and a TypeCar class which aims to describe the kind of car (Audi has a A1 car type, but also A3 , .....)

    meanwhile I add attributes to my CarManufacturer class, a name and a specific code....
    And when I have a look on the DashBoard (Admin panel), when I try to add a CarManufacturer I do not have those attributes.
    I have only the ones concerning a "page", i.e. Name Url Segment ...

    I don't understand whether I do a mistake or whether I forgot something. I would expect having those fields in the admin Panel when I create this kind of Objects.

    My example is a very trivial one, very similar to the tutorial one except that in the tutorial the Project class (extends Page) doesn't have $db specific attributes

    Hope Am I clear enough...

    thanks in advance for your hints.

  • IOTI
    Avatar
    Community Member
    187 Posts

    Re: $db fields do not appear in the DashBoard Link to this post

    Difficult to give an answer without seeing your code. Can you paste the code for all three classes?

  • Ajaxian
    Avatar
    Community Member
    8 Posts

    Re: $db fields do not appear in the DashBoard Link to this post

    Thanks IOTI,

    I solved my problem, it was a bad relationship described.
    A newcomer classic error....

    Thanks

    470 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.