コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.
解決済み

how to call cq overlay in the @Model resourceType

Avatar

Level 2

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?



トピック

トピックはコミュニティのコンテンツの分類に役立ち、関連コンテンツを発見する可能性を広げます。

1 受け入れられたソリューション

Avatar

正解者
Community Advisor

@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.

元の投稿で解決策を見る

4 返信

Avatar

Community Advisor

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 

Avatar

Level 2

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.

Avatar

正解者
Community Advisor

@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.

Avatar

Community Advisor

Hi @marksarmiento 

Maybe try with

 

@Model(resourceType = {"customs/samplecomponent", "/apps/cq/experience-fragments/editor/components/experiencefragment"}.

Arun Patidar

AEM LinksLinkedIn