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 |
-
Tutorial2: stuck in "Adding date and author fields"

3 April 2009 at 8:41am
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
-
Re: Tutorial2: stuck in "Adding date and author fields"

3 April 2009 at 9:09am
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
-
Re: Tutorial2: stuck in "Adding date and author fields"

3 April 2009 at 1:24pm
fixed.
it's should copy/past " function getCMSFields() {}"
inside class ArticlePage extends Page {}. -
Re: Tutorial2: stuck in "Adding date and author fields"

5 May 2009 at 4:31am
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 |

