Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

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

Avatar

Former Community Member

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"/>
1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

3 Replies

Avatar

Level 10

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

Avatar

Former Community Member

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

thanks!

Avatar

Correct answer by
Level 10

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