xfbml 对重氮的支持

发布于 2024-12-07 12:04:10 字数 296 浏览 6 评论 0原文

我正在尝试在我的重氮主题网站(Plone 4.1)上使用collective.simplesocial, 并注意“赞”按钮已损坏。

标记已转换为 (前缀被删除)。所有其他 xfbml 标签都遇到同样的问题。

我尝试将 xmlns:fb="http://www.facebook.com/2008/fbml" 添加到 html 标记,但它也不起作用。

有什么想法可以克服这个问题吗?

I'm trying to use collective.simplesocial on my diazo-themed site (Plone 4.1),
and notice the like button was broken.

The <fb:like> tag was transformed to <like> (the prefix is stripped). All other xfbml tags suffered the same problem.

I've tried to add xmlns:fb="http://www.facebook.com/2008/fbml" to html tag but it didn't work either.

Any idea to overcome this ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

新人笑 2024-12-14 12:04:10

这应该适用于 plusone 按钮(请参阅评论以获取原始问题的答案):

<xsl:template match="plusone">
  <xsl:element name="g:{local-name()}" xmlns:g="http://base.google.com/ns/1.0">
    <xsl:apply-templates select="@*|node()"/>
  </xsl:element>
</xsl:template>

This should work for the plusone button (see comment for answer to your original question):

<xsl:template match="plusone">
  <xsl:element name="g:{local-name()}" xmlns:g="http://base.google.com/ns/1.0">
    <xsl:apply-templates select="@*|node()"/>
  </xsl:element>
</xsl:template>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文