德鲁帕尔。新手的两个问题

发布于 2024-09-25 15:26:04 字数 167 浏览 6 评论 0原文

有人可以回答我的问题吗?

  1. 如何计算外部 URL 到另一个网页的点击次数。

  2. 我的内容类型可以有一个类别(分类法)。在节点视图中,我想在下面添加块,其中包含当前节点类别中节点的链接列表。我怎样才能实现这一目标?

问候

Could somebody give an answers for my question?

  1. How to count clicks on outside URL to another webpage.

  2. I have content type that can have one category (taxonomy). In node view I want to add block below with listing of links to nodes from current node category. How can I accomplish this?

Regards

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

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

发布评论

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

评论(1

長街聽風 2024-10-02 15:26:04
  1. 您可以将 JavaScript 与 Google Analytics 一起使用。您需要将点击处理程序添加到存储点击的外部链接。使用正则表达式和 jquery 可以非常简单地完成此操作。

  2. 您应该能够使用视图模块来执行此操作。它允许您使用界面轻松构建内容列表显示。分类法可能有点棘手,因为它是一对多的关系。您在自定义模块中自己构建块可能会更容易。这取决于您对视图、Drupal/PHP 的了解程度。

  1. You can use javascript along with Google analytics. You need to add a click handler to the external links that stores the click. This can be done pretty simple with regex and jquery.

  2. You should be able to do this with the views module. It allow you to build list display of content pretty easily with an interface. It can be a bit tricky with taxonomy since it's a one to many relationship. It might be easier for you to build the block yourself in a custom module. It depends how well you know views, Drupal/PHP.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文