mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update Page-types.md
In the TEMPLATES ....sub-heading..Adding Database Fields .. IN the line below.. Every time you run db/build to recompile the manifest........ change db/build to dev/build.
This commit is contained in:
parent
3a8833ec28
commit
c931b6f58a
@ -42,7 +42,7 @@ This is explained in a more in-depth topic at [Page Type Templates](/topics/page
|
||||
## Adding Database Fields
|
||||
|
||||
Adding database fields is a simple process. You define them in an array of the static variable `$db`, this array is
|
||||
added on the object class. For example, Page or StaffPage. Every time you run db/build to recompile the manifest, it
|
||||
added on the object class. For example, Page or StaffPage. Every time you run dev/build to recompile the manifest, it
|
||||
checks if any new entries are added to the `$db` array and adds any fields to the database that are missing.
|
||||
|
||||
For example, you may want an additional field on a `StaffPage` class which extends `Page`, called `Author`. `Author` is a
|
||||
@ -120,4 +120,4 @@ This will also work if you want to remove a whole tab e.g. $fields->removeByName
|
||||
Metadata tab.
|
||||
|
||||
For more information on forms, see [form](/topics/forms), [tutorial:2-extending-a-basic-site](/tutorials/2-extending-a-basic-site)
|
||||
and [tutorial:3-forms](/tutorials/3-forms).
|
||||
and [tutorial:3-forms](/tutorials/3-forms).
|
||||
|
Loading…
Reference in New Issue
Block a user