Wednesday, 26 June 2019

Content Fragment and Content Services


AEM - Content Fragment and Content Service

Adobe Experience Manager (AEM) Content Fragments allow you to design, create, curate and use page-independent content. They allow you to prepare content ready for use in multiple locations/over multiple channels.






Creating Content Fragments:

Before Creating content fragments, we need to create configuration to enable Content Fragments. Below are the steps to create configuration and create CF.

Steps 1: Enable configuration for Custom Content Fragments
1)      Login to AEM - https://<domain name>/aem/start.html
2)      Click on Tools: Tools -> General -> Configuration Browser
3)      Click on “Create” button and author title. And enable checkbox - Content Fragments Models

Configuration path will be something like “/conf/ContentFragments”


Step 2: Create Content Fragment Models
1)      Go to Tools -> Assets -> Content Fragment Models
2)      You will be able to see the folder with name created in Step 1 along with default one. Get into your folder.




3)      Create model by clicking on “Create” – Provide Title and Description for your Model



4)      Once you create models, you will be able to see them in folder as below.



5)      Edit the selected with required fields as below.





Steps 3: Enable content Fragments Under Assets – Content fragments are considered as Assets.
Be here https://<domain name>/aem/start.html
1)      Goto Navigation -> Assets -> Files
2)      You can enable Content Fragments creation capability to any folder you like within Files folder.
3)      Edit the properties folder for which you want to enable CF
4)      Goto Cloud Services tab in edit properties mode of folder




5)      Add path of configuration created in Step 1 - “/conf/ContentFragments”








Steps 4: Create CF under the folder where you enable CF in Step 3
https://<domain name>/assets.html/content/dam/<folder>/email-templates
1)      Click on create button and select Content Fragment from list
2)      Select the model created in Step 2
3)      Provide the Title for CF. Description and tag as optional
4)      Author content fragment as below



Once you follow these steps, CFs will be available for authoring in pages. 






Content Services: To make content fragments available to consumed by the any service, need to follow below steps.
Step 1: Enable Editable template configuration
1)      Login to AEM - https://<domain name>/aem/start.html
2)      Click on Tools: Tools -> General -> Configuration Browser
3)      Click on “Create” button and author title. And enable checkbox – Editable Templates

Configuration path will be something like “/conf/Editable%20Templates”



Step 2: Crate Editable templates
1)      Go to Tools -> General -> Templates
2)      You will be able to see the folder with name created in Step 1 along with default one. Get into your folder. Here “Editable Templates” folder name
3)      You can have custom template or you can use OOTB templates. For now, we will use OOTB template
4)      Get into folder “Editable Templates” and click on create button
5)      Select the template you want and provide required information to create template. Once you create template, you will see templates as below.
6)      Enable template created by clicking on button “enable”.



Step3 : Create pages under any desired content folder of your choice
1)      Enable content folder under which Editable templates should be available
Goto Page properties of folder add allowedTemplate field. Usually it should be root page.




2)      Create page using templates and author content fragments with in it.

1 comment:

  1. Content Writing Packages - Content is king. If you are a website owner or webmaster you know it very well. We provide various types of content writing services such as SEO content writing, website content writing, copy writing etc. Visit: Content Writing Services

    PPC Packages

    SEO Packages

    Digital Marketing Agency in India

    ReplyDelete