drupal视图facebook喜欢按钮 [英] drupal views facebook like button

查看:82
本文介绍了drupal视图facebook喜欢按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将facebook之类的按钮添加到我的veiws中,其中列出了特定的节点类型。我使用了视图自定义字段模块来添加iframe代码。

I tried to add facebook like button to my veiws, which lists a particular node-type. I used views custom field module to add the iframe code.

问题是当我单击时。.

显示 Nikhil喜欢 http://example.com/node/44

it shows Nikhil liked http://example.com/node/44

相反,它应该在example.com上显示 Nikhil喜欢的节点标题

instead it should have shown Nikhil liked node title on example.com.

我要去哪里了。

推荐答案

oK,我能够实现以上目标通过以下方法实现功能:

oK , well I was able to achieve the above feature by following methods:


  1. 在要为其创建视图的内容类型下创建cck字段url别名。

  1. Created a cck field url-alias under a content type for which views is being created.

使用views-custom-field模块,我将其放置在Facebook iframe代码中。

Using views-custom-field module, I put in the facebook iframe code.

在我看来,我以隐藏形式包括了url-alias字段,并用它在类似的代码中形成了url。

in my views I included the url-alias field in hidden form and used it to form the url in the like code.

我还使用了fb-social模块,然后所有我喜欢的按钮都按预期方式工作。

I also used the fb-social module and after that all my likes button were working as expected.

这篇关于drupal视图facebook喜欢按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆