ASPX templates
Version 3.x > ASPX templates > hidden inputs & html validation - vmode and lng View modes: 
User avatar
Member
Member
mark-bka.co - 2/11/2009 7:54:12 PM
   
hidden inputs & html validation - vmode and lng
Hi, am using kentico for a government health site which requires strict html validation and noticed the following inputs being inserted into the html - not surrounded by divs and thus breaking complience.

<input id="lng" type="hidden" value="en-NZ" name="lng"/>
<input id="vmode" type="hidden" value="10" name="vmode"/>

any ideas where I can set/change/modify/do something about these?

additionally just curious on what the purpose of <%=DocType%> in the masterpage is and the consequences of simply hardcoding in a strict doctype?

Cheers

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 2/12/2009 7:06:55 AM
   
RE:hidden inputs & html validation - vmode and lng
Hello,

You can change generating of these hidden inputs in:
'~App_Code/CMSPages/DocumentBase.cs'.

Well if you hardcode it you won't be able to change this value using CMS anymore, so we don't recommend it.

Best regards
Ondrej Vasil

User avatar
Member
Member
mark-bka - 2/12/2009 6:52:12 PM
   
RE:hidden inputs & html validation - vmode and lng
Thanks for that info.

With the doctype I hadn't been able to find where to set it - just realised its via editing the masterpage when using portal templates.

just another quick question, i notice script tags are generated by .net as
<script type="text/javascript" language="javascript">

except that language="javascript" is depreciated in html Strict 4.01.
Would have thought this would be removed by the xhtml output filter? Suggestions on how to modify this?

User avatar
Kentico Developer
Kentico Developer
kentico_zbysekn - 2/25/2009 6:53:42 AM
   
RE:hidden inputs & html validation - vmode and lng
Hello,

Unfortunately Kentico CMS do not support Strict 4.01 only Transitional. I have forwarded your suggestion to our developers and they will decide if something like this will be taken into consideration when developing new Kentico CMS release. I’m very sorry for the inconvenience.

Best Regards,
Zbysek Nemec