如何在 Drupal-6 中使用标签云创建一个简单的公司博客?

发布于 2024-09-26 03:51:33 字数 514 浏览 6 评论 0原文

我必须在 drupal-6 中创建一个简单的公司博客。这意味着每个用户只能在一个博客中发帖。

到目前为止,我所做的是创建一个自定义内容类型(博客)和一个视图,该视图显示最近博客条目的预告片以及完整博客文章的链接。

现在我必须为此博客创建一个标签云。 我为此“博客”内容类型创建了一个分类词汇表,并将设置设置为“标签”(术语是用户在提交帖子时通过键入逗号分隔列表来创建的。) 我还安装了 Tagadelic 模块并用它创建了一个标签云,效果很好,它显示了我在创建新博客整体时输入的所有标签。

但现在我的问题是: 第一:如果我单击此标签云中的条目,则默认的 Taxonomy_term 视图将用于显示生成的博客条目。这很糟糕,因为我希望它的显示方式与我已经定义的显示博客的视图相同。有没有办法使用我的视图来显示标签云的结果?

第二:在我看来,每个博客预告片下方应该有一个相关博客条目(共享相同术语的博客条目)的链接。我不知道该怎么做。

在我现在的设置下这是否可能,或者我应该采取一种完全其他的方法来创建带有标签云和相关博客条目的公司博客?

I have to create a simple company blog within drupal-6. That means there should be only one single blog each user can post into.

What i have done so far is to create a custom content Type (blog) and a view that displays teasers of the recent blog entries with links to the full blog post.

Now i have to create a Tag-Cloud for this blog.
I created a taxonomy vocabulary for this "blog" content type and set the settings to Tags (Terms are created by users when submitting posts by typing a comma separated list.)
I also installed the Tagadelic Module and created a tag cloud with it, that works great and it displays all the Tags i entered when creating new blog entires.

But now to my problems:
First: If i click on an entry in this tag-cloud the default Taxonomy_term view is used to display the resulting blog entries. Thats bad because i would like to have it displayed the same way as in the view i already defined to show the blogs. Is there a way to use my view to display the results of the tag-cloud?

Second: On my view, below each blog-teaser should be a link to related blog entries (the ones that share the same terms). I do not have a clue how to do that.

is this even possible with the setting i have now or should i maybe take a whole other approach to create that company blog with tag clouds and related blog entries?

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

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

发布评论

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

评论(1

爱给你人给你 2024-10-03 03:51:33

您应该能够非常轻松地解决这两个问题,同时保持当前的方法:

查看您的视图列表('admin/build/views/list')。您应该看到一个名为“taxonomy_term(默认)”的视图,该视图通常默认情况下处于禁用状态。这是内置分类术语页面的可选覆盖。您可以启用此功能并将其配置为看起来像您创建的博客视图。

或者,您可以禁用该选项,但将另一个“页面”类型的显示添加到现有的博客视图中,并将其配置为对内置分类术语的覆盖。为此,您需要将该显示的路径设置为“taxonomy/term/%”,并调整显示以使用术语 id 参数作为过滤器(查看上面的覆盖以了解其工作原理)。

您也可以以相反的方式进行操作 - 使用默认的taxonomy_term覆盖视图,根据您的博客视图需求配置其输出,并为您最近的博客条目添加另一个显示。之后,删除您自己的博客视图并使用分类术语覆盖的新显示。

You should be able to solve both problems pretty easily, while keeping your current approach:

Take a look at your views list ('admin/build/views/list'). You should see a view called 'taxonomy_term (default)', which is usually disabled by default. This is an optional override of the built in taxonomy term page. You can enable this and configure it to look like the blog view you created.

Alternatively, you could leave that one disabled, but add another display of type 'page' to your already existing blog view, and configure that as an override to the built in taxonomy term. For this you'll need to set the path of that display to 'taxonomy/term/%' and adjust the display to use the term id argument as a filter (look at the above override for how this works).

You could also do it the other way round - use the default taxonomy_term override view, configure its output according to your blog view needs, and add another display for your recent blog entries to that. After this, delete your own blog view and use the new display of the taxonomy term override instead.

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