Dialog opening error | Adobe Higher Education
Skip to main content
Level 2
January 17, 2024

Dialog opening error

  • January 17, 2024
  • 2 reacties
  • 1968 Bekeken

Hello everyone,
I have a problem with a custom component, I have created a component with sections 1 with a core title component and one with 4 teaser cores, I imported them into the code like this

<div class="aem-Grid aem-Grid--12">

<div class="aem-GridColumn aem-GridColumn--default--6">

<sly

data-sly-resource="${ 'title' @ resourceType='mrll/components/title' }"

></sly>

</div>

<div class="aem-GridColumn aem-GridColumn--default--6">

<div class="aem-Grid aem-Grid--12">

<div class="aem-GridColumn aem-GridColumn--default--6">

<sly

data-sly-resource="${ 'teaser1' @ resourceType='mrll/components/teaser', decoration=true }"

></sly>

</div>

<div class="aem-GridColumn aem-GridColumn--default--6">

<sly

data-sly-resource="${ 'teaser2' @ resourceType='mrll/components/teaser', decoration=true }"

></sly>

</div>

<div class="aem-GridColumn aem-GridColumn--default--6">

<sly

data-sly-resource="${ 'teaser3' @ resourceType='mrll/components/teaser', decoration=true }"

></sly>

</div>

<div class="aem-GridColumn aem-GridColumn--default--6">

<sly

data-sly-resource="${ 'teaser4' @ resourceType='mrll/components/teaser', decoration=true }"

></sly>

</div>

</div>

</div>

</div>

when I try to open the dialogue of the teaser embedded in my custom component, the console fails and does not open the dialogue, even more than the other components.

granite.lc-011c0fc0d0cf131bdff879743a353002-lc.min.js:7


GET http://localhost:4502/mnt/override/libs/core/wcm/components/teaser/v2/teaser/_cq_dialog.html/content/mrll/us/marelli-component/jcr:content/root/container/container/teaser_info/teaser1?resourceType=mrll%2Fcomponents%2Fteaser&_=1705519185887 404 (Not Found)

 

 

thank you

Er kunnen geen reacties meer worden geplaatst op dit onderwerp.

2 reacties

pulkitvashisth
Community Advisor
Community Advisor
January 17, 2024

Hi @hybrisad 
Please check these : 

1. make sure you have dialog in your component

2.make sure your component name and jcr:title property value are not same

Also this discussion is the same as yours I believe, so check this once:
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/custom-component-not-visible-in-sidekick/m-p/286665

A few more helpful links : 
https://sourcedcode.com/blog/aem/aem-components-are-not-showing-up-on-page-templates
Documentation : https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-wknd-tutorial-develop/project-archetype/custom-component.html


 

 

HybrisAdAuteur
Level 2
January 17, 2024

Hi @pulkitvashisth 
1. Yes, I have a dialogue for this component which is copied from the Hello World Component Core for testing purposes;
2. Nope, the names are different.

thanks

pulkitvashisth
Community Advisor
Community Advisor
January 17, 2024

@hybrisad 
I meant the dialog for the teaser component. Can you check if its present? and also check if the resource type path you are using for teaser component is correct.

If both things check out fine, then can you check if Teaser and Title component that you are trying to include, are they allowed in the template policies. If not , allow once and then check.

kautuk_sahni
Community Manager
Community Manager
January 18, 2024

@hybrisad Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni
HybrisAdAuteur
Level 2
January 18, 2024

@kautuk_sahni 

Nope I haven't found the solution yet, the component still doesn't work