webCOMAND

Content Types

This tutorial walks-through the creation of a basic contacts database of United States presidents.  It will also serve as the foundation for subsequent tutorials to create a website and web app.

Watch the video above, or follow the step-by-step instructions below.

Sign In and launch Content Manager

We will create the contact database with Content Manager, so first:

  1. Sign In to webCOMAND
  2. Launch Content Manager

Create "Tutorials" Folder

To keep things organized, we will create a folder to store everything for this project in one place.

  1. Click the New Menu (New Menu) in the right panel's toolbar.
  2. Select "Folder" from the list of content types.
  3. Enter the Title "Tutorials".
  4. Click Approve.

The new Tutorials folder will appear in the left panel.

Create "President" Content Type

Now that we have a folder for the project, we can create a Content Type and define the fields we will use to store information about each president.

  1. Select Tutorials in the left panel.
  2. Click the New Menu (New Menu) in the right panel's toolbar.
  3. Select "Content Type" from the list.
  4. Enter the Title "President".
If you are familiar with relational databases, a Content Type is like a table and Fields are like table columns.

FirstName Field Create "Number" Field

  1. Click the Fields' New Button (New Button).
  2. Enter the Title "Number".
  3. Select the Field Type "Number".
  4. Check "Unique/Key" to indicate this field value must be unique for each president, and can be used to look up a specific president.
  5. Check "Show in Summary" so the Number will be displayed in the summary for each president when displayed in a list and other views.

Create "Name" Field

  1. Click the New Button (New Option) on the right of the Object Toolbar to add another field.
  2. Enter the Title "Name".
  3. Check "Show in Summary".

FirstName Field Create "Photo" Field

  1. Click the New Button (New Option) on the right of the Object Toolbar to add another field.
  2. Enter the Title "Photo".
  3. Select the Field Type "Image Data" from the drop-down.  This will provide an image upload field control in Form View.
  4. Check "Show in Summary" to include a thumbnail of the photo with the Number and Name in List View and other views.

Add President Content Type Icon

Icon Field We have technically already set up everything we need to for the President content type.  However, we can improve how the content type is represented in webCOMAND by adding an icon.

  1. Click "President" at the far left of the path in the Object Toolbar to navigate back up a level to the Content Type Form View.
  2. Select the "Labels & Help" tab.
  3. Upload an image to the Icon field.  The image will be used to represent the content type in Tree View on the left and other views.
  4. Click Approve

Add Presidents with Form View

FirstName Field Now that the President content type has been created, we can add a couple presidents in Form View.

  1. Click the "Tutorials" Folder in the Tree View on the left.
  2. Click the New Menu (New Menu) in the right panel's toolbar.
  3. Select "President" from the list of content types.
  4. Enter president information for a president and upload a photo.
  5. Click Approve.
  6. Click the New Button (New Option) on the right of the Object Toolbar and repeat steps 4-6 for an additional president.

Import Dialog Import Presidents from a JSON URL

Content can also be imported from CSV and JSON files.

  1. Click the expand triangle to the left of the "Tutorials" Folder in the Tree View on the left.
  2. Click "Presidents" under the "Tutorials" Folder.
  3. Click the Import Button (New Menu) in the Collection Bar.
  4. Enter the URL: http://www.webcomand.com/docs/developer_guide/tutorials/content_types/presidents.json
  5. Click Next
  6. Click Import

Conclusion

Now we have a simple database of United States presidents.  We will build on this database to create a simple website publication next.