Skip to main content
New Participant
Apr 12, 2018 1:50 PM UTC
Solved

publish content fragment on AEM 6.4

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.
kautuk_sahni
kautuk_sahniAccepted solution
Employee
Apr 12, 2018 2:30 PM UTC

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

8 replies

joerghoh
Employee
Sep 3, 2019 8:48 PM UTC

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

Translate
aashishkochhar
New Participant
Sep 3, 2019 9:51 AM UTC

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 ?

Translate
sureshr19072451
Level 3
Aug 29, 2018 5:18 PM UTC

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.

Translate
New Participant
Apr 12, 2018 2:56 PM UTC

Ok, Thanks.

Translate
smacdonald2008
Level 10
Apr 12, 2018 2:53 PM UTC

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.

Translate
New Participant
Apr 12, 2018 2:51 PM UTC

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?

Translate
smacdonald2008
Level 10
Apr 12, 2018 2:44 PM UTC

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.

Translate
kautuk_sahni
kautuk_sahniAccepted solution
Employee
Apr 12, 2018 2:30 PM UTC

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

Translate
Kautuk Sahni