コミュニティアチーブメントバーを展開する。

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

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

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

Avatar

以前のコミュニティメンバー

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 受け入れられたソリューション

Avatar

正解者
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

元の投稿で解決策を見る

3 返信

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

以前のコミュニティメンバー

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

thanks!

Avatar

正解者
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