Issue
- We added the following meta tags via the page settings, but that generated html code is encoded and it is not working:
<meta content="<html lang="fi"/>
<meta name="sdg-tag" content="sdg"/>
<meta name="DC.ISO3166" content="FI"/>
<meta name="DC.Service" content="information"/>
<meta name="policy-code" content="B5;B6;K1"/>" lang="fi-FI" name="description" />.
Environment
- DXP 7.1
Resolution
- On 7.1.x, it is only possible to add text strings that will be added in a similar fashion to the portal.
Both the description and the robots meta tags have distinct functionality based on the following articles: - Example for robots meta tag
- Example for description meta tag
Additional Information
- If you would like to customize this using an OOTB feature, that feature was introduced in LPS-100973, which was released for 7.3. So the best option would be upgrading to that patch level.
Subscriber Exclusive Content
A Liferay Enterprise Subscription provides access to over 1,500 articles that include best practices, troubleshooting, and other valuable solutions. Sign in for full access.
Sign In