Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need to add lang attribute
#1
I am running IntraWeb 14.1.13 and I am trying to add the lang attribute to the html element like <html lang="en">
How could I go about doing that?  TIA!
Reply
#2
procedure TIWServerController.IWServerControllerBaseConfig(Sender: TObject);
begin
HTMLLanguage := 'zh'; //https://www.w3schools.com/tags/ref_language_codes.asp
end;
Reply
#3
Thank you.

I tried that code but end up with HTMLLanguage as an undeclared identifier.  
I am not sure what I am missing.
Reply
#4
(08-29-2020, 04:09 PM)Steadfast Wrote: Thank you.

I tried that code but end up with HTMLLanguage as an undeclared identifier.  
I am not sure what I am missing.

v15.2.15


Attached Files Thumbnail(s)
   
Reply
#5
I don't have the property.  I am running version 14.1.13.  Can I get this to work with that version?
Reply
#6
In this version the only way to change it is building it from your sources (if you have access to it) and changing the constant gHtmlStart in IWGlobal.pas.

Information on building IW from sources can be found here: https://doc.atozed.com/en/iw14/misc/buil...m-sources/
Reply
#7
It looks like I do have the source available so I will try that.  Thank you!
What version was that property added?
Reply
#8
It was introduced in version 14.2.0, on 29-Aug-2017
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)