Jump to:

3460 Posts in 1064 Topics by 739 members

Data Model Questions

SilverStripe Forums » Data Model Questions » can't add new page type

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

Page: 1
Go to End
Author Topic: 1803 Views
  • bebabeba
    Avatar
    Community Member
    192 Posts

    can't add new page type Link to this post

    Hi!
    Following documentation I create a new page type form my news. So I create StweekHolder.php and StweekPage.php (and StweekHolder.ss and StweekPage.ss).
    After this I rebuild db so i edit: www.mysite/db/build?flush=1 and I see in blue colour that my database create this page.
    The problem is that when I enter in my CMS and I try to create a new page (StweekHolder or StweekPage) in my curtain I can see my new page type.
    Why?
    Is there a maximum number of page type to create? I create other 3 page type like this with different name and I havn't problem.

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: can't add new page type Link to this post

    hi bebabeba

    this is usually a typo error, so make sure you have named your controllers correctly and that they match up with the filenames etc.

    Aram

  • UncleCheese
    Avatar
    4085 Posts

    Re: can't add new page type Link to this post

    Also, it sounds obvious, but refresh your CMS page. The dropdown menu won't magically populate.

  • bebabeba
    Avatar
    Community Member
    192 Posts

    Re: can't add new page type Link to this post

    Hi!
    thanks for reply me!!I try your solution: I refresh my cms and I check my page type but everything is ok..This can be a server problem?

  • bebabeba
    Avatar
    Community Member
    192 Posts

    Re: can't add new page type Link to this post

    I think the proble is connect to my database..Silverstripe tell me that write in db this page tipe but when I open db to check if the table exist, the table isn't create. Any idea?

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