Niveau 1
Niveau 2
Se connecter à la communauté
Connectez-vous pour voir tous les badges
I have created a custom gallery component and added custom button component to it, (sling:ResourceSuperType as Core button component) using data-sly-resource as below.
<sly data-sly-resource="${ 'deselectButton' @ resourceType='myproject/components/button', decoration=true}"></sly>
1. For button component i have added style system and able to use it properly when i add button component directly on page.
2. Now, I have added gallery component on a page, and it has button component inside it, when I open the dialog, I'm not able to see styles tab, however, I'm able to see the paint brush icon when I hover on edit mode and add styles, but my problem statement is not able to view styles tab in button component dialog until I add some style using the paint brush icon.
Please let me know if there are any solutions.
Les sujets facilitent la catégorisation du contenu de la Communauté et vous aident à retrouver le contenu le plus pertinent.
Vues
Réponses
Nombre de J’aime
Hi @tejaswi_aem
I also faced something similar. It seems like the policy is missing for the pre-added button component. You can check the policies section of your page's template.
Here, In the xml check in the container section where you are adding your gallery component whether the button policy is present and properly mapped to you policy.
Hope it helps.
Hi,
I have done this, but problem is still not resolved.
Vues
Réponses
Nombre de J’aime
@tejaswi_aem Just checking in — were you able to resolve your issue?
We’d love to hear how things worked out. If the suggestions above helped, marking a response as correct can guide others with similar questions. And if you found another solution, feel free to share it — your insights could really benefit the community. Thanks again for being part of the conversation!
Vues
Réponses
Nombre de J’aime
Vues
Likes
Réponses
Vues
Like
Réponses
Vues
Likes
Réponses
Vues
Likes
Réponses