01440: Support for new directive bodylang to set lang attribute in html body tag

Summary: Support for new directive bodylang to set lang attribute in html body tag
Created: 2019-05-10 02:15
Status: Open
Category: Feature
From: Jyoti
Assigned:
Priority: 4
Version: 2.2.114
OS: Linux/Apache/PHP7.3

Description: SEO recommendation is increasingly emphasizing on the presence of lang tag in html elements. I think providing an easy way to specify lang tag for the body element can be very useful.

This is an enhancement request not a bug report. Jyoti May 10, 2019, at 02:15 AM

You can easily specify the lang attribute for the <html> element, for compatible skins, with such a line in config.php or any other or group or page configuration: $HTMLTagAttr = ' lang="en"'; The skin template needs to have that variable in the <html> tag, like <html $HTMLTagAttr>. BTW it is also possible to place this variable in the <body> tag of the skin template, or create another (custom) variable. --Petko May 10, 2019, at 06:09 AM