I trying to add custom page properties in the xfpage dialog and instead off using propertiy.property name I want to extend the xfpage model and return the properties from the model as json. is there any reference or documentation to achieve this
Hi,
You need to use the delegation pattern to extend the model that is exporting the data and add your custom data. Then, you can use that data instead of the out-of-the-box (OOTB) data. You can check how to do this here: https://experienceleague.adobe.com/en/docs/experience-manager-learn/getting-started-with-aem-headle...
Hope this helps
Hi @EstebanBustamante ,Thank you for your response. I would like to illustrate that I am currently employing the delegation pattern, as below please let me know if you see anything wrong in this:
Views
Replies
Total Likes
Hey, check that actually your project-global-spa-react/components/xfpage inherits from "PAGE" (the resourceType you are adding in the adapter section). Please check this example of how the resourceType and relationship is handled in order for the delegation to work properly: https://github.com/adobe/aem-core-wcm-components/wiki/Delegation-Pattern-for-Sling-Models
Hope this helps
@pankajda3 Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!
Views
Replies
Total Likes
@pankajda3 Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!
Views
Replies
Total Likes
Views
Like
Replies