Expand my Community achievements bar.

SOLVED

publish content fragment on AEM 6.4

Avatar

Level 1

I've built some content fragments and added them to a page in my Author instance, but when i publish this pages the content fragments does not appears

Page in my Author instance

page Author edit mode.JPG

Page in my Author instance

page Author view mode.JPG

as we can see i have a content fragment in the page, but when i publish the page it look like this:

Page in my publish instance

page publish edit mode.JPG

Page in my publish instance

page publish view mode.JPG

is there any additional step to publish a page with a content fragment?

does anyone have a idea of how can i solve this?

1 Accepted Solution

Avatar

Correct answer by
Administrator

Can you please check if CF also got published? Check your publisher instance.

CF is an assets, try to locate under assets and publish it manually.

Are you getting any error in publisher instance?

-Kautuk



Kautuk Sahni

View solution in original post

8 Replies

Avatar

Correct answer by
Administrator

Can you please check if CF also got published? Check your publisher instance.

CF is an assets, try to locate under assets and publish it manually.

Are you getting any error in publisher instance?

-Kautuk



Kautuk Sahni

Avatar

Level 10

This means the CF itself may not exist on Pub. It would be like a component. If that component does not exist on the PUB instance, then it will not show up in the page being served from a PUB instance.

Avatar

Level 1

The CF was not published, and when i manually published the CF, the page worked.

so every time i use a CF in my page it will be necessary to upload the CF manually, right?
but when i publish my page, all the content shouldn't be published together?

Avatar

Level 10

Like components - you need to get them into the publish instance. You can use Packages for this purpose.

Publishing pages that contain CF will not automatically move them to the Pub instance.

Avatar

Level 3

Here;s what I found -

When you publish a page that reference a content fragment that was modified but not published yet, then the publish screen will show you all the references to Content Fragments so that Authors are enabled to publish them.

1559855_pastedImage_0.png

On the other hand, when publishing a content fragment, authors would not know the pages that are referencing that content fragment.

I wish at least the references can be shown as it currently does for an image asset - 

1559856_pastedImage_1.png

Please correct me if my understanding is wrong.

Avatar

Level 1

If my Content Fragment has a content reference to an asset for example an image which is yet not published and if I publish my page , AEM asks for content fragment to publish but it doesn't ask for the image asset to be published.

Is there a way to configure such thing so AEM also asks for the image referred in content fragment to be published when I publish my page ?

Avatar

Employee Advisor

That would be a transitive reference, and of course checking these is also possible. But depending on your content this will take longer. Though, it should not be too hard to implement, see [1] for a way to implement such a ReferenceProvider.

[1] acs-aem-commons/PagesReferenceProvider.java at master · Adobe-Consulting-Services/acs-aem-commons · ...