publish content fragment on AEM 6.4 | Community
Skip to main content
April 12, 2018
Solved

publish content fragment on AEM 6.4

  • April 12, 2018
  • 8 replies
  • 3222 views

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 in my Author instance

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 in my publish instance

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

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

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

8 replies

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
April 12, 2018

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
smacdonald2008
Level 10
April 12, 2018

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.

April 12, 2018

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?

smacdonald2008
Level 10
April 12, 2018

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.

April 12, 2018

Ok, Thanks.

sureshr19072451
Level 3
August 29, 2018

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.

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 - 

Please correct me if my understanding is wrong.

aashishkochhar
September 3, 2019

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 ?

joerghoh
Adobe Employee
Adobe Employee
September 3, 2019

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 · GitHub