There are multiple sites in AEM. I want to switch header depending on site. Is there any in built AEM function to get site name in template.
I know I can do it by creating helper but I am looking for AEM built in function to get site name.
Solved! Go to Solution.
Views
Replies
Total Likes
If you more requirements where templates are shared between sites, but you also have site-specific text or configurations, you might want to explore Context Aware Configs https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/developing/conte...
Hi,
I think there is no function to directly get you the site name or path but you can get hierarchy level of the parent page by using
Page ("The Adobe AEM Quickstart and Web Application.")
If you more requirements where templates are shared between sites, but you also have site-specific text or configurations, you might want to explore Context Aware Configs https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/developing/conte...