Jump to:

18591 Posts in 4875 Topics by 2285 members

General Questions

SilverStripe Forums » General Questions » Tutorial2: stuck in "Adding date and author fields"

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

Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba

Page: 1
Go to End
Author Topic: 665 Views
  • speedooo
    Avatar
    Community Member
    11 Posts

    Tutorial2: stuck in "Adding date and author fields" Link to this post

    I am following the tutorial 2 today and stuck in this section "Adding date and author fields".
    I created these two new fields and rebuild db, I can see them in database.

    Then I created new "NEWS" section at the same level as "HOME", and change page type to "ArticalHolder".
    After that created new "news Articalpage" under "NEWS", and change the page type to "ArticalPage".

    But I did NOT see the new fields Date and Author in this news artical page.

    Anything I did wrong, please help?

    thanks

    kevin

  • speedooo
    Avatar
    Community Member
    11 Posts

    Re: Tutorial2: stuck in "Adding date and author fields" Link to this post

    I followed the next step... "Creating the templates"
    Created "ArticlePage.ss" and "ArticleHolder.ss" under Layout dir.

    I CMS I created news articlepage, I can see them in website, just without Date and author fields.

    I went to the database, found new created records in "StieTree" table with my news content, but nothing in "ArticlePage" table???

    anything wrong in my process?

    thanks

    kevin

  • speedooo
    Avatar
    Community Member
    11 Posts

    Re: Tutorial2: stuck in "Adding date and author fields" Link to this post

    fixed.
    it's should copy/past " function getCMSFields() {}"
    inside class ArticlePage extends Page {}.

  • risingsunset
    Avatar
    Community Member
    9 Posts

    Re: Tutorial2: stuck in "Adding date and author fields" Link to this post

    I have the same problem. I pasted the "function getCMSFields() {}" but it still doesn't work...
    How knows the CMS to use the new templates? It still uses the "Page.ss"...

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