Merge pull request #2695 from sanjaymundhra/patch-2

Update Page-types.md
This commit is contained in:
Ingo Schommer 2013-11-29 00:56:58 -08:00
commit 74dd0a528d

View File

@ -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).