02-18-06 03:49 AM
Hi Tony,
> Being a government body our website has to conform to all sorts of
> regulations, one of them being w3c validation.
We're currently going through exactly the same process as yourselves.
>
> Our current <!DOCTYPE> model for all code is XHTML 1.0 Transitional,
> but Visual Studio does some nasty things with code.
>
> By playing around with tools / options we've managed to avoid alot of
> incorrect code, by getting VS.NET to stop mucking around with your when
> you switch between design and html view, but there are still a few
> problems that we cannot get around.
Could you give me any pointers to the settings you had to change to stop
VS.NET screwing up the HTML?
> The biggest one being the CMS
> RobotMetaTag control :
>
> <cms:robotmetatag id=RobotMetaTag1 runat="server"></cms:robotmetatag>
>
> Which renders out both a robots metatag and a base ref to the posting,
> both of which can't be self-closed.
>
> <meta name="ROBOTS" content="FOLLOW,INDEX">
> <base
> href="http://www.northamptonshire.gov.uk/ncc/Templates/homepage.aspx?NRM
> ODE=Published&NRORIGINALURL=%2f&NRNODEGUID=%7b40DDDDCD-8777-4EB8-83AC-64
> 75493BA63E%7d&NRCACHEHINT=NoModifyGuest">
>
> Is there anyway to make the <cms:robotmetatag> XHTML1.0 transitional ?
The easiest way is to just re-write an XHTML-compliant version of the
control yourself.
All you need to do is grab the current posting object and look at the
IsRobotFollowable and IsRobotIndexable properties and write out the
appropriate XHTML.
Let me know if you need some code and I'll dig out the appropriate section
from our solution.
Regards,
John
[ Post a follow-up to this message ]
|