is there any way to desplay the dialog on the HTL whithout using model ? | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by aanchal-sikka

Hello @mohammedskouti 

 

There are many Global HTL objects which can render the content from resource to page directly.

https://experienceleague.adobe.com/docs/experience-manager-htl/content/global-objects.html?lang=en

 

<div>
    <h1>${properties.title}</h1>
    <p>${properties.description}</p>
</div>

 

There is an approach discussed here: https://soluml.medium.com/building-an-aem-authoring-component-out-of-htl-sightly-no-jsp-required-e130af3f4db2

 

However, recommended approach is to use Sling models, if you have a bit of complexity in business logic

1 reply

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
September 8, 2023

Hello @mohammedskouti 

 

There are many Global HTL objects which can render the content from resource to page directly.

https://experienceleague.adobe.com/docs/experience-manager-htl/content/global-objects.html?lang=en

 

<div>
    <h1>${properties.title}</h1>
    <p>${properties.description}</p>
</div>

 

There is an approach discussed here: https://soluml.medium.com/building-an-aem-authoring-component-out-of-htl-sightly-no-jsp-required-e130af3f4db2

 

However, recommended approach is to use Sling models, if you have a bit of complexity in business logic

Aanchal Sikka