Expand my Community achievements bar.

SOLVED

Is there any inbuilt AEM function to get site name in template.

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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


Aanchal Sikka

View solution in original post

2 Replies

Avatar

Community Advisor

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.")



Arun Patidar

Avatar

Correct answer by
Community Advisor

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


Aanchal Sikka