Hi all!
I am using AEM 6.4, but with static templates (so JSP files).
I want to grab the form property "Description" and use for Meta tags for SEO, as well as to show on the form itself. I am trying to put in my template, but cannot seem to get the code right.
The form title is pulled in by the following code:
<title><%= currentPage.getTitle() == null ? xssAPI.encodeForHTML(currentPage.getName()) : xssAPI.encodeForHTML(currentPage.getTitle()) %></title>
But I cannot get similar code to work for the Description:
<meta name="description" content="<%= xssAPI.encodeForHTML(currentPage.getDescription()) %>" /> returns null.
Is there an API I have to engage to get the form's description from the properties?
Thanks!