Publish Referenced Pages

Avatar

Avatar
Validate 1
Level 2
dmitryp96795211
Level 2

Likes

2 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 2
dmitryp96795211
Level 2

Likes

2 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile
dmitryp96795211
Level 2

05-10-2018

Hello,

I am trying to publish a page with its referenced page. According to the docs there are multiple ways to do so. However, I am not getting any prompts when attempting to publish from page edit view. When I try through Manage Publication, I am not getting the "Published References" link.

I've tried two ways:

1. Including a page with the data-sly-resource statement in a component:

<sly data-sly-resource="${bannerModel.link @ wcmmode='disabled'}"/>

2. Using reference component:

Dropped a reference component from General group and specified a page to reference.

In both cases, referenced pages are not getting published. Is there a way AEM can publish them or should I write a custom implementation programmatically?

Thanks in advance.

Replies

Avatar

Avatar
Validate 1
MVP
raj_mandalapu
MVP

Likes

125 likes

Total Posts

203 posts

Correct reply

72 solutions
Top badges earned
Validate 1
Contributor
Shape 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
MVP
raj_mandalapu
MVP

Likes

125 likes

Total Posts

203 posts

Correct reply

72 solutions
Top badges earned
Validate 1
Contributor
Shape 1
Give Back 5
Give Back 3
View profile
raj_mandalapu
MVP

08-10-2018

The Asset references will identify automatically but when it comes to pages I think we need to manually publish all reference pages, I think the reason behind this is when some other content author is working on some other page and without approval using reference if you publish the same page to the live then it is going to be problem

You will see this option "Published References" only when there are references on the page, you can test this by adding some assets.

Avatar

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

487 likes

Total Posts

1,049 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

487 likes

Total Posts

1,049 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile
Veena_Vikram
MVP

08-10-2018

While writing any custom logic just make sure that it is very specific to your project and doesn't affect other projects.

Avatar

Avatar
Validate 1
Level 2
dmitryp96795211
Level 2

Likes

2 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 2
dmitryp96795211
Level 2

Likes

2 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile
dmitryp96795211
Level 2

15-10-2018

Thanks for reply, rajas66269496. In this particular case, the referenced page is tightly coupled with the page that references it and the requirement is to publish it along they way, since there is no chance that anyone will work on the referenced page in isolation.

Avatar

Avatar
Validate 1
MVP
raj_mandalapu
MVP

Likes

125 likes

Total Posts

203 posts

Correct reply

72 solutions
Top badges earned
Validate 1
Contributor
Shape 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
MVP
raj_mandalapu
MVP

Likes

125 likes

Total Posts

203 posts

Correct reply

72 solutions
Top badges earned
Validate 1
Contributor
Shape 1
Give Back 5
Give Back 3
View profile
raj_mandalapu
MVP

15-10-2018

You need to write a custom workflow process and add that to the "Request for Activation" workflow, inside your custom workflow process get the current page path from the payload and find the referenced links either you can go and read each and every node and find out href links or you can write some query, get the links and using Replicate class you can programmatically replicate all reference pages

Check this to create a custom workflow process

https://helpx.adobe.com/experience-manager/using/creating-custom-aem-workflow-steps.html

I

Avatar

Avatar
Give Back 5
Level 4
aneeta45259594
Level 4

Likes

47 likes

Total Posts

67 posts

Correct reply

27 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 5
View profile

Avatar
Give Back 5
Level 4
aneeta45259594
Level 4

Likes

47 likes

Total Posts

67 posts

Correct reply

27 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 5
View profile
aneeta45259594
Level 4

15-10-2018

dmitryp96795211

I think the functionality you're looking for is mentioned in [1].

In Touch UI, the page references are calculated only when a particular configuration, called the "WCM Authoring Content Reference Configuration" is configured to list the reference component in the OSGi configuration [1]. These references then start appearing under "Borrowed Content" in the reference rail.

Best Regards,

Aneet Arora

[1] Developing AEM Components