Expand my Community achievements bar.

SOLVED

Functions template similar to Magnolia

Avatar

Level 1

Hi All I have one question, i need to migrate a webpage in magnolia that uses a predefined template functions for example: 

cmsfn.contentByPath
cmsfn.link
restfn.call
searchfn.search

Somebody know if in AEM 6.5 exist similiar functions?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @jlorenzo1, AEM is not providing any equivalent to template functions from Magnolia. There are some global objects and EL that are available in HTL, please see details under [1] & [2]. I think you could achieve some of the similar results using combination of those 2 (global objects and EL). Please be aware that AEM development approach is a bit different than Magnolia, there is no something like light development. All your logic should be kept in OSGi components/services and sling models.

 

[1] - https://experienceleague.adobe.com/docs/experience-manager-htl/using/htl/global-objects.html?lang=en

[2] - https://experienceleague.adobe.com/docs/experience-manager-htl/using/htl/expression-language.html?la...

 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @jlorenzo1, AEM is not providing any equivalent to template functions from Magnolia. There are some global objects and EL that are available in HTL, please see details under [1] & [2]. I think you could achieve some of the similar results using combination of those 2 (global objects and EL). Please be aware that AEM development approach is a bit different than Magnolia, there is no something like light development. All your logic should be kept in OSGi components/services and sling models.

 

[1] - https://experienceleague.adobe.com/docs/experience-manager-htl/using/htl/global-objects.html?lang=en

[2] - https://experienceleague.adobe.com/docs/experience-manager-htl/using/htl/expression-language.html?la...