Hello Everyone,
I'm currently fixing an issue on localization of components using
cq/experience-fragments/editor/components/experiencefragment
The approach we are heading at, is by an overlay then extend..
So inside the "apps" I created a folder for the cq/experience-fragments/editor/components/experiencefragment
Then in the experiencefragment I added a sling:resourceSuperType: customs/samplecomponent <---- this is my custom component
Upon observation, I observe that the overlay and extend is working as expected in terms of dialogs but when I call it inside the "IMPL", samplecomponntimpl I cannot call it...
It looks like this:
@Model(resourceType = {"customs/samplecomponent", "cq/experience-fragments/editor/components/experiencefragment"}.....
I tried adding the customs/samplecomponent in the page and the impl is triggered. But when Im calling the cq/experience-fragments/editor/components/experiencefragment in the page the impl is not triggerred.
Did I miss something thats why its not working as expected?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
@marksarmiento, When customizing variables or methods, ensure the HTML interacts with your model class that extends the OOTB model class, and that the functionality is handled in your custom Impl class.
Views
Replies
Total Likes
Can you check if inside apps folder for below path cq/experience-fragments/editor/components/experiencefragment has the html or jsp file? It might be possible that this html or jsp file version getting called instead of your custom component html or jsp file
Views
Replies
Total Likes
Hi I added experiencefragment.html with the content of "/libs/core/wcm/components/experiencefragment/v1/experiencefragment/experiencefragment.html".
(with this the component is not showing properly in the page)
I removed the html and the component is properly being shown in the page, but still not going in the custom impl that I created (I'm on debug mode).
Somehow the value is being rendered and I'm not sure where it is processing its values.
Views
Replies
Total Likes
@marksarmiento, When customizing variables or methods, ensure the HTML interacts with your model class that extends the OOTB model class, and that the functionality is handled in your custom Impl class.
Views
Replies
Total Likes
Maybe try with
@Model(resourceType = {"customs/samplecomponent", "/apps/cq/experience-fragments/editor/components/experiencefragment"}.
Views
Replies
Total Likes
Views
Likes
Replies