Functions template similar to Magnolia | Community
Skip to main content
November 29, 2021
Solved

Functions template similar to Magnolia

  • November 29, 2021
  • 1 reply
  • 604 views

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

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 lukasz-m

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?lang=en

 

1 reply

lukasz-m
Community Advisor
lukasz-mCommunity AdvisorAccepted solution
Community Advisor
November 29, 2021

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?lang=en