您查看的帮助内容对应的版本是:

Content Fragments are stored as Assets, so are primarily managed from the Assets console.

注意:

Content fragments are then used with authoring pages; see Page Authoring with Content Fragments.

Creating Content Fragments

Creating a Content Model

Content fragment models can be enabled and created, prior to creating content fragments with structured content.

注意:

See Developing Content Fragments for further information on templates; used for simple content fragments.

Creating a Content Fragment

The method of creating a content fragment is (basically) the same for both simple and structured fragments:

  1. Navigate to the Assets folder where you want to create the fragment.

  2. Select Create, then Content Fragment to open the wizard.

  3. The first step of the wizard requires you to specify the basis of the new fragment.

    • This can be a:
      • Template - for example Simple Fragment
      • Model - used to create a fragment that requires structured content; for example the Airport model
    • All available templates and models are displayed.

    After selection, use Next to proceed.

    chlimage_1
  4. In the Properties step specify:

    • Basic
      • Title
        The fragment title.
        Mandatory.
      • Description
      • Tags
    • Advanced
      • Name
        The name; will be used to form the URL.
        Mandatory; will be automatically derived from the title, but can be updated.
  5. Select Create to complete the action, then either Open the fragment for editing or return to the console with Done.

Actions for a Content Fragment

In the Assets console a range of actions are available for your content fragments, either:

  • From the toolbar; after selection of your fragment all appropriate actions are available.
  • As quick actions; a subset of actions available for the individual fragment cards.
cf-42

Select the fragment to reveal the toolbar with applicable actions:

  • Quick Publish
  • Manage Publication
  • Create
  • Download
    • Save the fragment as a ZIP file; you can define whether to include Elements, Variations, Metadata.
  • Checkout
  • Properties
    • Allows you to view and/or edit the fragment's metadata.
  • Edit
  • Manage Tags
  • To Collection
  • Copy/Paste
  • Move
  • Delete

注意:

Many of these are standard actions for Assets and/or the Desktop App.

Opening the Fragment Editor

To open your fragment for editing:

  1. Use the Assets console to navigate to the location of your content fragment.

  2. Open the fragment for editing, by either:

    • Clicking/tapping on the fragment or fragment link (this is dependent on the console view).
    • Selecting the fragment, then Edit from the toolbar.

    The fragment editor will open:

    cfmanage-02

    注意:

    1. A message will be shown when the fragment is already referenced on a content page.

    2. The side panel can be hidden/shown using the Toggle Side Panel icon.

  3. Navigate through the three modes using the icons in the side panel:

    chlimage_1
  4. After making changes, use Save or Cancel as required.

    注意:

    Both Save and Cancel will exit the editor - see Save, Cancel and Versions for full information on how both options operate for content fragments.

Save, Cancel and Versions

The editor has two options:

  • Save

    Will save the latest changes and exit the editor.

    注意:

    It is possible to remain in the editor, making a series of changes, before selecting Save.

    注意:

    In addition to simply saving your changes, Save also updates any references and ensures that the dispatcher is flushed as required. These changes can take time to process. Due to this, there can be a performance impact on a large/complex/heavily-loaded system.

    Please bear this in mind when using Save and then quickly re-entering the fragment editor to make and save further changes.

  • Cancel

    Will exit the editor without saving the latest changes.

While editing your content fragment AEM automatically creates versions to ensure that prior content can be restored if you Cancel your changes:

  1. When a content fragment is opened for editing AEM checks for the existence of the cookie-based token that indicates whether an editing session exists:

    1. If the token is found, the fragment is considered to be part of the existing editing session.
    2. If the token is not available and the user starts editing content, a version is created and a token for this new editing session is sent to the client, where it is saved in a cookie.
  2. While there is an active editing session, the content being edited is automatically saved every 600 seconds (default).

    注意:

    The auto save interval is configurable using the /conf mechanism.

    Default value, see:

    /libs/settings/dam/cfm/jcr:content/autoSaveInterval

  3. If the user selects to Cancel the edit, the version created at the start of the editing session is restored and the token is removed to end the editing session.

  4. If the user selects to Save the edits, the updated elements/variations are persisted and the token is removed to end the editing session.

Editing the Content of your Fragment

Once you have opened your fragment, you can use the Variations tab to author your content.

Creating and Managing Variations within your Fragment

Once you have created the Master content, you can create, and manage, Variations of that content.

Associating Content with your Fragment

You can also associate content with a fragment. This provides a connection so that assets (i.e. images) can be (optionally) used with the fragment when it is added to a content page.

Viewing and Editing the Metadata (Properties) of your Fragment

You can view, and edit, the properties of a fragment using the Metadata tab.

Publishing and Referencing a Fragment

注意:

If your fragment is based on a model, then you should ensure that the model has been published.

If you publish a content fragment for which the model has not yet been published, a selection list will indicate this and the model will be published with the fragment.

Content Fragments must be published for use in the publish enviroment. They can be published:

注意:

After a fragment has been published and/or referenced, AEM will display a warning when an author opens the fragment for editing again. This is to warn that changes to the fragment will affect the referenced pages as well.

Deleting a Fragment

To delete a fragment:

  1. In the Assets console navigate to the location of the content fragment.

  2. Select the fragment.

    注意:

    The Delete action is not available as a quick action.

  3. Select Delete from the toolbar.

  4. Confirm the Delete action.

    注意:

    If the fragment is already referenced in a page you will then see a warning message and be required to confirm that you want to proceed with a Force Delete. The fragment, together with its content fragment component, will be deleted from any content pages.

本产品经 Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License 许可  Twitter™ 与 Facebook 中的内容不在 Creative Commons 的条款约束之下。

法律声明   |   在线隐私策略