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

How to validate locale in HTML code with HTL

elizabethg83724
Level 2
Level 2

Good afternoon!!

     I am using HTL and I have to validate in the HTML code which is the my page's locale with data-sly-test. Is it possible? and if yes, How is the best way I can do this?

Thank you in advance!!!

1 Accepted Solution
edubey
Correct answer by
Level 10
Level 10

In order to retrieve value you can use any of these

${currentPage.language.toString}

${currentPage.language.language}

Just in case you need API references-

https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/javadoc/co...

View solution in original post

1 Reply
edubey
Correct answer by
Level 10
Level 10

In order to retrieve value you can use any of these

${currentPage.language.toString}

${currentPage.language.language}

Just in case you need API references-

https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/javadoc/co...

View solution in original post