Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > xmlns:fb="http://www.facebook.com/2008/fbml" how to add to html? View modes: 
User avatar
Member
Member
deadjdona-gmail - 9/16/2011 8:08:45 AM
   
xmlns:fb="http://www.facebook.com/2008/fbml" how to add to html?
to get a validation from w3c i need to place a following code to html tag

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="http://www.facebook.com/2008/fbml">

- this is for facebook insights meta proper validation handling.

how can I do this??

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 9/19/2011 2:46:02 AM
   
RE:xmlns:fb="http://www.facebook.com/2008/fbml" how to add to html?
Hello,

Speaking about the Portal engine approach, you can amend the following page: ~\CMSPages\PortalTemplate.aspx and add your code directly to the HMTL tag.

Moreover, if you need to add it according to some condition, you can do that also in the code-behind. There is the this.DocumentBase.XmlNamespace property which can be adjusted as per your needs.

Best regards
Ondrej Vasil

User avatar
Member
Member
jjarrett-flsouthern - 2/13/2014 4:47:07 PM
   
RE:xmlns:fb="http://www.facebook.com/2008/fbml" how to add to html?
Is this still the recommended way to alter the html tag?

I tried using the HTML Tag Code webpart but I wasn't able to affect the html xmlnamespace or add attributes.

I placed the HTML Tag Code webpart at the bottom of the page. Is there a specific place it should be put?

I am hoping to remove the xmlns="http://www.w3.org/1999/xhtml" and add lang="en"

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 2/15/2014 2:01:11 PM
   
RE:xmlns:fb="http://www.facebook.com/2008/fbml" how to add to html?
Hello,

Yes, I think that this solution applies to all versions of Kentico. However, this is a v5 forums thread, so if you are using a different version, create a new thread under appropriate version number. Version 8 of Kentico will be released in 2 months and from that day, version 5 won't be supported anymore.

Best Regards,
Martin Danko