Olet tarkastelemassa seuraavan version ohjesisältöä::
- 6.5
- 6.4
- 6.3
- Aiemmat versiot
Huomautus:
Content fragments are then used with authoring pages; see Page Authoring with Content Fragments.
Content fragment models can be enabled and created, prior to creating content fragments with structured content.
Huomautus:
See Developing Content Fragments for further information on templates; used for simple content fragments.
The method of creating a content fragment is (basically) the same for both simple and structured fragments:
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.

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.
- 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
- Allows you to open the fragment for editing content together with its elements, variations, associated content and metadata.
- Manage Tags
- To Collection
- Add the fragment to a collection.
- This can also be done when associating a collection with the fragment.
- Add the fragment to a collection.
- Copy/Paste
- Move
- Delete
Huomautus:
Many of these are standard actions for Assets and/or the Desktop App.
-
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:
Huomautus:
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.
-
Navigate through the three modes using the icons in the side panel:
- Variations: Editing the content and Managing your Variations
- Associated Content
- Metadata
-
Huomautus:
Both Save and Cancel will exit the editor - see Save, Cancel and Versions for full information on how both options operate for content fragments.
-
Huomautus:
It is possible to remain in the editor, making a series of changes, before selecting Save.
Varoitus:
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.
While editing your content fragment AEM automatically creates versions to ensure that prior content can be restored if you Cancel your changes:
-
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:
- If the token is found, the fragment is considered to be part of the existing editing session.
- 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.
Once you have opened your fragment, you can use the Variations tab to author your content.
Once you have created the Master content, you can create, and manage, Variations of that content.
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.
You can view, and edit, the properties of a fragment using the Metadata tab.
Varoitus:
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 creation; from the Assets console.
- When you publish a page that uses the fragment; the fragment will be listed in the page references.
Varoitus:
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.