내 커뮤니티 업적 표시줄을 확대합니다.

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