Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Using the facebook like button inside the CMS View modes: 
User avatar
Member
Member
EvanchikM-asme - 7/28/2011 12:30:48 PM
   
Using the facebook like button inside the CMS
Hi,

we've been trying to get the like button to work on our site, but one of the requirements, especially for I.E., is that you add the facebook specific xml namespace to the html tag.

xmlns:og="http://opengraphprotocol.org/schema/"
xmlns:fb="http://www.facebook.com/2008/fbml"

We've tried to do that with no success. Is there a way?


User avatar
Member
Member
kentico_michal - 7/28/2011 11:09:32 PM
   
RE:Using the facebook like button inside the CMS
Hello,

Where do you try to create the like button? Could you please try to follow steps described in the following article: How we add the Facebook Like button to our blog

Best regards,
Michal Legen

User avatar
Member
Member
EvanchikM-asme - 7/29/2011 8:57:20 AM
   
RE:Using the facebook like button inside the CMS
I Used this document from your site:

"HOL - Integrating Facebook with Kentico CMS"

the question remains: how do we add the xfbml name space tags into the html tag? It's required by FB.

User avatar
Member
Member
EvanchikM-asme - 7/29/2011 8:58:21 AM
   
RE:Using the facebook like button inside the CMS
Sorry, I forgot to say, I added it as a (static) web part on our article pages.

User avatar
Member
Member
EvanchikM-asme - 7/29/2011 8:59:23 AM
   
RE:Using the facebook like button inside the CMS
...and, we're testing it internally.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 8/1/2011 2:58:51 AM
   
RE:Using the facebook like button inside the CMS
Hello,

Could you please let me know the exact html which you need to insert? Could you please also let me know which part of the code needs to be dynamic?

Please try to insert the code into a transformation. The static web part wasn't tested for this.

Best regards,
Boris Pocatko

User avatar
Member
Member
theplastictoy - 9/14/2011 8:01:16 AM
   
RE:Using the facebook like button inside the CMS
Having the same question here:

In portal mode, how can we add namespaces to the <html> declaration? It's not editable via CMS Desk.

Eg:
<html xmlns:og="http://opengraphprotocol.org/schema/">

Thanks

User avatar
Member
Member
kentico_michal - 9/14/2011 8:36:37 AM
   
RE:Using the facebook like button inside the CMS
Hello,

You will need to modify the portal template which you can find in ~\CMSPages\PortalTemplate.aspx and add any html attributes you need:

<html xmlns="http://www.w3.org/1999/xhtml" <%=XmlNamespace%> id="no-js" >


Best regards,
Michal Legen

User avatar
Member
Member
theplastictoy - 9/14/2011 9:02:04 AM
   
RE:Using the facebook like button inside the CMS
Hi Michal,

Thanks for the prompt answer.
I was afraid of this. If you have more than one website, it will impact all of them, but we'll deal with this.

Regards,
Ricardo