Hi,
I have the requirement where the page jcr description should be populated in a component's description field when dialog is open. please note: the component is authored on the same page. Now, if I edit the description field in component dialog and save it. the new content or description should start reflecting in the page description field as well in page properties.
Is there any optimized way through which two fields with same name in different location(different locations meaning page component and individual component) can share the same data.
Please advise.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Option-1: Like @arunpatidar Instead of sharing a place to persist data. You can use following:
This is a snapshot from Teaser component. You can use the description from Page, and when needed override on component itself.
Option-2: Embed the component on template, so that the structure stays the same.
Now the description from Page properties should have a proper name like "./tile/openInNewWindow", here tile is the component and "openInNewWindow" is a property,
The property name is components' dialog should be "openInNewWindow"
I haven't tried it my-self. Just a thought
Please check Core Teaser component, It has the same feature
https://experienceleague.adobe.com/docs/experience-manager-core-components/using/wcm-components/teas...
Thanks Arun ! Let me check and try this.
Option-1: Like @arunpatidar Instead of sharing a place to persist data. You can use following:
This is a snapshot from Teaser component. You can use the description from Page, and when needed override on component itself.
Option-2: Embed the component on template, so that the structure stays the same.
Now the description from Page properties should have a proper name like "./tile/openInNewWindow", here tile is the component and "openInNewWindow" is a property,
The property name is components' dialog should be "openInNewWindow"
I haven't tried it my-self. Just a thought
Thanks Aanchal !
Just tried Option-2:
1. Created a new field in Page properties
2. Added a title field to the template at similar location. Unlocked component
3. Now when I edit via page properties, the property is reflected on page and vice versa