Adobe CQ - Specify where JCR content is written (exact path) | Community
Skip to main content
October 16, 2015
Solved

Adobe CQ - Specify where JCR content is written (exact path)

  • October 16, 2015
  • 3 replies
  • 747 views

I am trying to create a dialog that has an xtype of "textfield"...I need to specify that anytime the user updates this field it will always overwrite the same JCR content node.

I am including this component/dialog in multiple pages, so that the author can edit the text. The issue is that the text will be updated for that page. (because I am using a relative path).

What I need to happen...The content is updated and written to a central location so that no matter which page the user edits this text it will always update to a central location.

A real world example: We have modal dialogs that show throughout the site. Some of these dialogs are global. Out client has requested to have an edit option on any page that these dialogs show. The acceptance criteria is that they can edit on any page and that edit will be applied globally.

My problem is that I am not sure how to set the path that the text field will write to.

I am retrieving the content from here:

 

<cq:include path="/content/jjj/en/misc/deviceoutmodal/jcr:content/buttontext1" resourceType="zig/components/text"/>
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 Sham_HC

Please follow the documentation [1].  It will let you update content to a central location no matter which page includes that.

[1] http://dev.day.com/docs/en/cq/current/developing/boilerplates.html

3 replies

Sham_HC
New Participant
October 16, 2015

If you are  Using Components as Boilerplates it will apply at global level only. Recheck the resourceType path as documented at

http://dev.day.com/docs/en/cq/current/developing/boilerplates.html

October 16, 2015

So sorry...i am new to CQ. I still don't understand. Do you think you can help a little more. 

thanks!

Sham_HC
Sham_HCAccepted solution
New Participant
October 16, 2015

Please follow the documentation [1].  It will let you update content to a central location no matter which page includes that.

[1] http://dev.day.com/docs/en/cq/current/developing/boilerplates.html