Content Fragments content-fragments
Content fragments in ÃÛ¶¹ÊÓƵ Experience Manager (AEM) as a Cloud Service are created and managed as page-independent assets, allowing you to create channel-neutral content, together with (possibly channel-specific) variations. You can use these fragments, and their variations, when authoring your content pages.
- The new editor for Content Fragments - Authoring, is primarily accessed from the Content Fragments console.
- The original editor is primarily accessed from the Assets console.
- Content Fragments are editorial content, with definition and structure, but without additional visual design and/or layout. They can be used to access structured data, including texts, numbers, and dates, amongst others.
- Experience Fragments are fully laid out content; a fragment of a web page.
The content fragments enable:
-
Marketing and Campaign Strategy
- Review content via centrally managed content fragments.
-
Creative Pro
- Tracking of creative assets via collections associated with content fragments.
-
Copy Writers
- Write in the AEM content fragment editor.
- Can create content variations.
- Can associate relevant content with the content fragment.
- Can use versioning/workflow.
- Can share content fragment.
- Can manage translations centrally.
-
Producers and Journey Managers
- Select from predefined fragments and variations with authoring in AEM.
- Can rely on fragment and associated content always being up-to-date as copy writers and creatives make their updates in centrally managed fragments and assets.
- Can rely on associated media content being curated for relevancy.
- Can create ad-hoc content variations on the fly while still ensuring those variations remain centrally managed in the fragment.
Adding a Content Fragment to Your Page adding-a-content-fragment-to-your-page
-
Open your page for editing.
-
Add the Content Fragment component; from either the Components browser or Insert New Component.
-
You can either:
- Open the Assets browser and filter for Content Fragments (the default is Images). Then drag the required fragment onto the component instance.
- Select the content fragment component, then Configure from the toolbar. In the dialog you can open the selection dialog to browse and select the required Content Fragment.
note note NOTE An alternative method is to drag a specific content fragment directly onto the page. This will automatically create the associated component (Content Fragment). -
Initially, the content from the Main Element and Master (variation) are shown. You can select other elements and/or variations as required.
note note NOTE For more information about further editing functionality see also:
Selecting the Element or Variation selecting-the-element-or-variation
Open the fragment’s Configuration dialog to configure the fragment for use on the current page. The dialog can depend on the component used.
In the appropriate configuration dialog you can select the available parameters, including:
-
Content Fragment
- Specify the fragment to be used.
-
Display Mode:
- Single Text Element
- Multiple Elements
-
Element
- A selection is available dependent on the model used.
note note NOTE The elements available depend on the model used. -
Variation
- The default Master is always be available.
- A selection is available if variations were created for the fragment.
-
ID
- HTML ID attribute to apply to the component.
Quick Connection to Fragment Editor quick-connection-to-fragment-editor
You can open the fragment source for editing (the asset) using the Edit icon on the component toolbar. This will allow you to edit and manage the content fragment.
Adding In-Between Content adding-in-between-content
When a specific content fragment is added to the page, there is a Drag components here placeholder between each HTML paragraph (and at the top/bottom) of the fragment.
This lets you add extra content in-between (that is, in-between content) the fragment content (at any of the available points), without having to change the root fragment.
For in-between content you can:
- Add components from the Components browser.
- Add assets from the Assets browser.
- Use Associated Content as a source for in-between content.
-
In-between components have an absolute position within the sequence of components in the fragment flow. This position does not change, even when the content of paragraphs in the fragment changes.
This can make it appear as if the relative positioning has changed, as in-between paragraphs have no contextual relationship to the (fragment) paragraphs they are positioned next to.
-
Unless the two paragraph structures conflict; in such a case, the in-between content is not displayed (although it is still present internally).
Using Associated Content using-associated-content
If you have associated content with the content fragment these assets are available from the side panel (after you place your fragment on the content page). Associated content is effectively a special source of content for in-between content.
Once you have added a fragment with associated content to your page a new tab (Associated Content) is opened in the side panel.
From here you can drag the assets to the required location (either to an existing component or to the required position where the appropriate component is created):
Assets Inserted into the Fragment assets-inserted-into-the-fragment
If assets (for example, images) have been inserted into the fragment itself (as mixed-media fragments), then the options for editing these assets in the page editor is limited.
For example, for an image you can
- Crop, rotate or flip the image.
- Add a title or alternative text.
- Specify a size.
- You can also configure the layout.
Other changes, such as move, copy, delete must be made in the fragment editor.
Publishing publishing
Fragments need to be published so they can used used on your published web pages:
- A fragment can be published after creating the fragment in the Content Fragments console.
- If an unpublished fragment is used on a page that is being published, the fragment can also be published at this time.
Exporting Content Fragments exporting-content-fragments
For export to ÃÛ¶¹ÊÓƵ Target, JSON can be used to deliver the fragment. See: