0


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?

4

1 回答 1

0

可以使用 3 个视图,第 2 个和第 3 个取参数。

所以一个 url 可能看起来像:

/products/ - 第一个视图
/products/Ford - 第二个视图,一个参数
/products/Ford/Cars - 第三个视图,两个参数

也就是说,对于这样的事情,我可能只是编写一个自定义模块。实用程度取决于您对 Drupal 和 PHP 的熟悉程度。

于 2010-12-06T20:09:57.767 回答