您正在檢視適用於以下版本的說明內容::

註解:

Adobe recommends using the SPA Editor for projects that require single page application framework-based client-side rendering (e.g. React). Learn more.

A model describes a type of content and denotes what will be information will be available to the native application. This section explains the creation of new models.

注意:

Prerequisites for creating a model

Models can only be created under nodes that have been enabled by the Configuration Browser. The Configuration Browser also allows permissions to be defined so different users may only have access to the creation of models under certain configurations.

See, Enabling Data Models in Administering Content Services for detailed steps.

Creating a Model

註解:

To get started creating models a model type must exist. A model type defines the default state for each model created from it as well as the data types available to that model.

Once you have defined the configurations in the Configuration Browser, you can create and manage your models in the application dashborad. The following steps describe the model creation flow:

  1. Navigate to the Models console and choose the configuration.

    chlimage_1
  2. Click Create to create a new model.

  3. Choose the type of template: Entity Group or Primitives Types Model. Click Next.

    chlimage_1
  4. Enter the Model Title and Description. Click Create to create a model.

    chlimage_1

    註解:

    Once you create a model, click Done to open the Data Model Editor to add the data types and set properties to the editor.

    If you created your model using the Entity Group as the template, you will only view options such as Properties, Copy and Delete for that created model.

    chlimage_1

    If you created your model using the Primitives Model Type as the template, you will only view options such as Edit, Properties, Copy and Delete for that created model.

    chlimage_1
  5. If you choose the template as Primitive Models type, click Edit to add the data types using the Data Model Editor.

    chlimage_1

    Or, if you are using the Entity Template for your model, then click on view properties to upload an image or get more information on the defined model.

    chlimage_1

    註解:

    Alternatively, you can create your own custom models. See Models in Repository to create your own models and define data types.

Managing a Model

Managing a model involves viewing properties, editing, and deleting a model.

Viewing a Model

The following steps are required for reading/viewing a model:

  1. Navigate to the Model Console
  2. Select the model from the list by clicking on its icon
  3. Choose Properties from the toolbar icons
  4. Click Save & Close or Save when done

Editing a Model

The following steps are required for editing a model:

  1. Navigate to the Model Console
  2. Select the model from the list by clicking on its icon
  3. Choose Edit from the toolbar icons to open the Data Model Editor.
  4. Make changes to the model
  5. Click Save when done

註解:

You can only edit a Primitive Model Type.

Reading a Model

The following steps are required for editing a model:

  1. Navigate to the Model Console
  2. Select the model from the list by clicking on its icon
  3. Choose Properties from the toolbar icons
  4. Make changes to the model
  5. Click Save when done

Deleting a Model

The following steps are required for deleting a model:

  1. Navigate to the Model Console
  2. Select the model from the list by clicking on its icon
  3. Click Delete

Deleting a model will not delete entities generated from that model.

Additional Resources

Once you learn how to create models as an author, see

此産品由 Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License 授權  Creative Commons 條款未涵蓋 Twitter™ 與 Facebook 文章。

法律說明   |   線上隱私權政策