Expand my Community achievements bar.

SOLVED

is there any way to desplay the dialog on the HTL whithout using model ?

Avatar

Level 3
 
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

 

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


Aanchal Sikka

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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

 

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


Aanchal Sikka