PDF Viewer configuration for publish | Community
Skip to main content
Level 2
July 2, 2021
Solved

PDF Viewer configuration for publish

  • July 2, 2021
  • 2 replies
  • 1056 views

How will a make changes to the jcr:content for sling:configRef, if my author domin and publish domin is different?

ex: author: www.author.xyz.com 

publish: www.publish.abc.com

I have created 2 client id for it, but how to make it working when i need to configure sling:configRef in content node. 

If an author replicates the content then the author "sling:configRef" will move to publish which will make this inconsistent.

 

Please suggest.

 

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 shelly-goel

@gowtham_ford  If I understood your question correctly, I think you have to provide sling:configRef as the relative path (/conf/brand1, etc.) for the CA config and not absolute path and in the respective site config, you can add the client id as needed.

2 replies

arunpatidar
Community Advisor
Community Advisor
July 3, 2021

Hi,

CAC doe snot support the run mode.

In your case if you have 2 client ids , you need to extend the core component and inject the id based on run mode.

https://github.com/adobe/aem-core-wcm-components/blob/e3b725d62509499778ccb21c21ba60f115abd0b6/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/models/v1/PdfViewerImpl.java#L93

Arun Patidar
shelly-goel
Adobe Employee
shelly-goelAdobe EmployeeAccepted solution
Adobe Employee
July 3, 2021

@gowtham_ford  If I understood your question correctly, I think you have to provide sling:configRef as the relative path (/conf/brand1, etc.) for the CA config and not absolute path and in the respective site config, you can add the client id as needed.