问题标签 [drupal-taxonomy]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
665 浏览

drupal - 如何在 Drupal Views 中列出相关术语的所有子术语

我真的很难找到答案,并且花了 6 个小时在视图中搜索和弄乱。让我解释。

我有两个分类词汇:Catalog 和 Fabric。我有一个 Fabric 中的 Fabric 列表,其分层结构类似于以下内容:

Seasonal-2010 -
公司--面料
设计师
---面料系列
----面料名称
Seasonal-2009 -
公司--面料
设计师
---面料系列
----面料名称

在目录词汇中,我有目录类别:圣诞节、春季、夏季等。我已经关联(使用分类词汇相关模块),目录中的圣诞节术语与 Fabric 中的 Seasonal-2010 术语。

我想要做的是传递圣诞节的学期 ID 并显示该类别中所有面料名称的列表。所以我需要做的是获取 TermID,然后获取相关术语,然后获取相关术语的子项。

我已经制作了一个输出相关术语的视图,现在我需要做的就是让孩子们来。在不同的视图中,我可以得到直系子女(即公司),但不能得到他们的孩子等等。有人有建议吗?

0 投票
2 回答
229 浏览

drupal - Drupal权限,一个用户案例

该网站的目标是维护product列表。

  • 每个都由标题描述数量(CCK 字段)product组成。
  • 每个都product属于一个shop
  • 每个shop都有一个manager
  • 所有人products都可以看到。
  • Amanager只能添加/编辑products他自己的shop.
  • 一个站点admin可以创建新的shops和新的managers.

如何为上述场景设置权限?

我正在考虑使用Taxonomy商店名称,分类访问控制用于权限控制。不确定我是否走在正确的轨道上...

此外,Organic Groups也是一种选择吗?

谢谢!

0 投票
1 回答
165 浏览

drupal - Drupal - linking Taxonomies together with views in a sequence


I have something in Drupal (v6) that i'm trying to nail, but having a little difficulty. I am laying out a list of products which have the following taxonomy vocabularies attached to them:

  • Manufacturer
  • Product Type
  • Use

When entering a product, which uses a custom content type, the admin can select one or more terms from each of these vocabs.

I then need to lay the front-end out using Views as follows:

  1. List of Manufacturers displayed to the user - user clicks one
  2. List of Product Types displayed to the user that have a product contained within that matches the chosen Manufacturer - user clicks one
  3. List of Uses displayed to the user that have a product contained within that matches the chosen Manufacturer and Product Type - user clicks one to view full node details

The tricky bit is making the link between each of these vocabs using Views. The taxonomy vocabs have no hierarchy defined within them, I just need to be able to display them to the user in the order above. I can't change to using a nested hierarchy in just one vocabulary as the 3 seperate vocabs are used elsewhere on the site for other purposes and need to stay as they are.

Is it possible to create what i'm after with Views? Any tips on how best to rig it together?

0 投票
1 回答
4428 浏览

drupal - 一次保存以编程方式嵌套的分类术语

下面的代码允许使用 Drupal API 创建分类术语

它适用于兄弟术语,但如果我需要创建嵌套分类树怎么办?有一个“父”键应该包含父术语ID的数组来做到这一点

在父术语保存在数据库中之前,我如何知道这些 ID?

0 投票
1 回答
1745 浏览

drupal-6 - drupal 分类菜单链接基于 - 词汇名称/术语同义词

我有一个词汇表,其中包含几个项目,每个术语都有一个同义词。我如何使用以下路径将词汇表添加到我的菜单之一:词汇表名称/术语同义词我已经查看了分类菜单,但无法弄清楚如何使用此模块或任何其他模块进行操作。任何的想法 ?

0 投票
2 回答
2402 浏览

drupal - 如何在drupal的面包屑中显示分类子类别

我正在使用 Taxonomy_Manager 和 Menu_breadcrumb 模块,
我的类别看起来像:
+商业
++农业 ++银行与金融
++建筑与房地产
+新闻
++ 新闻背后
++ 和平与战争

现在的问题是:如果我浏览任何子类别,它不会出现在面包屑中(面包屑将是“主页>>”),而如果我浏览主要类别之一,它将正常出现在面包屑中(“主页>>新闻")
我尝试过 taxonomy_breadcrumb 但这并没有解决问题:(
我如何设置子类别以显示在面包屑中??
感谢您的帮助

0 投票
1 回答
530 浏览

drupal - Drupal 分类视图

我想以填充与每个术语相关的最新节点的方式生成分类术语的视图,例如,如果我有三个术语,我想要一个视图,结果应该如下所示

term1->最新节点

term2->最新节点

term3->最新节点

term4->最新节点

我想要每个术语的最新节点如果我在词汇表中添加一个术语,它会自动添加到此页面中我希望你理解我的问题请帮助我如何做到这一点

谢谢。

0 投票
1 回答
137 浏览

php - 列出链接到相应分类节点的分类术语

在drupal中,安装分类节点模块后,我可以创建一个解释分类术语的节点。这工作正常。

现在,我想列出给定节点的分类术语,其中列表的每个术语都是指向该术语节点的链接。

换句话说:

0 投票
4 回答
402 浏览

drupal - Drupal6x:使用来自相同分类词汇的术语两次标记内容

有没有办法用相同分类词汇中的术语标记内容两次?我想这样做的原因是允许使用分类词汇表中的多个术语标记内容,但也可以使用“主要”术语标记内容。

通过选择适当的内容类型,我将分类选择作为分类词汇页面中的 CCK 字段嵌入。

在不创建相同的分类词汇表的情况下,有什么公认的方法来做到这一点?我需要创建一个模块来同步到词汇表吗?

0 投票
1 回答
3497 浏览

drupal - 如何在 drupal 中获取页面的术语 ID?


如果我在drupal中浏览分类页面,有没有办法获取这个页面的term-id?
前任:

如果我浏览塞浦路斯的页面,我怎样才能得到它的 tid?