From c931b6f58a159ee506eb69b31f2dc266453b82a8 Mon Sep 17 00:00:00 2001 From: sanjay Date: Fri, 29 Nov 2013 11:55:23 +0530 Subject: [PATCH] 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. --- docs/en/topics/page-types.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/topics/page-types.md b/docs/en/topics/page-types.md index 93595e9a1..94d8af868 100644 --- a/docs/en/topics/page-types.md +++ b/docs/en/topics/page-types.md @@ -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). \ No newline at end of file +and [tutorial:3-forms](/tutorials/3-forms).