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?
해결되었습니다! 솔루션으로 이동.
토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.
조회 수
답글
좋아요 수
@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.
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
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.
@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.
Maybe try with
@Model(resourceType = {"customs/samplecomponent", "/apps/cq/experience-fragments/editor/components/experiencefragment"}.