Published Content Fragment Model not available while creating Content Fragment in 6.5

Avatar

Avatar

Nirmalkumar_Ses

Avatar

Nirmalkumar_Ses

Nirmalkumar_Ses

12-08-2019

In an endeavor to do Headless usecase sample, I have attempted to create content Fragment Model.

In AEM 6.5 Under Tools>Assets>Content Fragment Model (http://localhost:4502/libs/dam/cfm/models/console/content/models.html/conf )

I have created Content Fragment Model and published it.

After clicking the publish button, I got notification "INFOModel xyzFragment scheduled for publishing." I don't know were to see the status of the publish action. If any one know please guide me.(question 1)

In an assumption its published, I have proceeded to create the "Content Fragment" under Assets>Files>Create -> Content Fragment. But I could see only "Simple Fragment" listed. I could not see the above Content Fragment Model in the list. This gives me a doubt that content fragment model is not published. Please clarify(Question 2)

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Theo_Pendle

MVP

Avatar

Theo_Pendle

MVP

Theo_Pendle
MVP

12-08-2019

Hi, I can't tell answer with much certainty with the information you've provided, so here are a few pointers for your investigation. Just before I get started, you're not trying to create the Content Fragment on the Publisher, right? I'm just asking because in your question you say "In an assumption its published, I have proceeded to create the "Content Fragment" under Assets>Files>Create -> Content Fragment" but:

  1. You should never create content on the Publisher, always create on teh Author and publish to the Publisher
  2. If you are creating on Author, then the publish status of the model really has no effect on whether you can create a Content Fragment from it or not

Moving on, here are questions you might want to ask:

Are you creating the Content Fragment from the right place?

You should have created your Model under a project folder (by default creating a Model at the root folder is disabled). You have to be in a folder with the same name in Assets in order to use your Models. Here is an example of what I mean (using We.Retail):

Peek 2019-08-12 20-40.gif

Has the Model even been published?

On your Author instance, go to Tools > Deployment > Replication

Here, click on Agents on author. You should see the following agent in the list:

1811845_pastedImage_0.png

If like me you have a warning about a blocked queue (in my case its because my Publisher instance ins't running) then your model never made it to Publisher. For more details, click on Default Agent (publish) and you can see what items are in the queue, test your replication and/or view replication logs.

Is the model present on Publisher?

You can't see the model in your Touch UI, but there anything in the JCR? on your Author instance, go to the CRX DE console (http://localhost:4502/crx/de/index.jsp). Find your model in the JCR tree, it should be at /conf/<your-project>/settings/dam/cfm/models/<model-name> or thereabouts (if you've created a custom folder structure, find it here).

Once you have the path, check it on your Publisher instance and see if it is present.

Try out these avenues and tell me how it goes If it's not any of those at least you should be able to get an idea of where the problem might be.

Answers (1)

Answers (1)

Avatar

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281
Gaurav-Behl
MVP

12-08-2019

After clicking the publish button, I got notification "INFOModel xyzFragment scheduled for publishing." I don't know were to see the status of the publish action. If any one know please guide me.(question 1)

Check the replication queue status or the relevant properties in /crx/de, I don't think there is any dashboard for same

In an assumption its published, I have proceeded to create the "Content Fragment" under Assets>Files>Create -> Content Fragment. But I could see only "Simple Fragment" listed. I could not see the above Content Fragment Model in the list. This gives me a doubt that content fragment model is not published. Please clarify(Question 2)

Enable the configuration as mentioned @ Content Fragment Models

Apply the Configuration to your Assets Folder

When the configuration global is enabled for content fragment models, then any models that users create can be used in any Assets folder. To use other configurations (i.e. excluding global) with a comparable Assets folder, then you have to define the connection. This is done using Configuration in the Cloud Services tab of the Folder Properties of the appropriate folder.