Ви переглядаєте довідкову інформацію для версії:

Content Fragment Models define the structure of content for your content fragments.

Enable Content Fragment Models

Увага!

If do you not enable Content Fragment Models the Create option will not be available for creating new models.

Увага!

If you create a new folder for configurations to use with a comparable Assets folder, then you have to:

  • Use CRXDE Lite to manually set the cq:conf property on the jcr:content node of the appropriate Asset folder.
    • The value of the cq:conf property must be defined as the path of the configuration.
  • For example:
    • for a configuration defined:  /conf/CFModels-conf
    • on: /content/dam/we-retail/jcr:content
    • define the property: cq:conf 
    • with the value: /conf/CFModels-conf

To create a new Content Fragment Model you must first enable them using the Configuration Manager:

  1. Navigate to ToolsGeneral, then open the Configuration Browser.

  2. Select global, or the location appropriate to your website.

  3. Use Create to open the dialog, where you:

    1. Specify a Title
    2. Select Content Fragment Models to enable their use.
    chlimage_1
  4. Select Create to save the definition.

Creating a Content Fragment Model

  1. Navigate to ToolsAssets, then open Content Fragment Models.

  2. Navigate to the folder appropriate to your configuration.

  3. Use Create to open the wizard.

    Увага!

    If the use of content fragment models have not been enabled, the Create option will not be available.

  4. Specify the Model Title. You can also add a Description if required.

    chlimage_1
  5. Use Create to save the empty model. A message will indicate the success of the action, you can select Open to immediately edit the model, or Done to return to the console.

    chlimage_1

Defining your Content Fragment Model

The content fragment model effectively defines the structure of the resulting content fragments. Using the model editor you can add, and configure, the required fields:

  1. Navigate to ToolsAssets, then open Content Fragment Models.

  2. Navigate to the folder holding your content fragment model.

  3. Open the required model for Edit; use either the quick action, or select the model and then the action from the toolbar.

    Once open the model editor shows:

    • left: fields already defined
    • right: Data Types available for creating fields (and Properties for use once fields have been created)
    chlimage_1
  4. To Add a Field

    • Drag a required data type to the required location for a field:
    chlimage_1
    • Once a field has been added to the model, the right panel will show the Properties that can be defined for that particular data type. Here you can define what is required for that field. For example:
    chlimage_1
  5. To Remove a Field

    Select the required field, then click/tap the trash-can icon. You will be asked to confirm the action.

    chlimage_1
  6. After adding all required fields, and defining the properties, use Save to persist the definition. For example:

    chlimage_1

Deleting a Content Fragment Model

Увага!

Deleting a content fragment model can impact dependent fragments.

To delete a content fragment model:

  1. Navigate to ToolsAssets, then open Content Fragment Models.

  2. Navigate to the folder holding your content fragment model.

  3. Select your model, followed by Delete from the toolbar.

    Примітка.

    If the model is referenced a warning will be given. Take action appropriately.

Publishing a Content Fragment Model

Content fragment models need to be published when/before any dependent content fragments are published.

To publish a content fragment model:

  1. Navigate to ToolsAssets, then open Content Fragment Models.

  2. Navigate to the folder holding your content fragment model.

  3. Select your model, followed by Publish from the toolbar.

Related Documentation

Цей документ захищено ліцензією Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Публікації Twitter™ і Facebook не підпадають під умови ліцензії Creative Commons.

Юридична інформація   |   Політика мережевої конфіденційності