Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Functions template similar to Magnolia

jlorenzo1
Level 1
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
lukaszm
Correct answer by
Level 7
Level 7

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
lukaszm
Correct answer by
Level 7
Level 7

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